Starting from $$F=ma = m \frac{dv}{dt} = m \frac{ds}{dt} \frac{dv}{ds} = m v \frac{dv}{ds}, $$ leads to work done = integral of F.ds = integral of mvdv = change in KE.
Suppose a variable force is applied to a body. At time $t=0$, $v=0$ and $F=0$. Then the force increases, and the body accelerates and moves forwards. Then a retarding force brings the body back to rest. Is it correct that the body has moved forwards but no net work has been done on the body, as there is no net change in kinetic energy?