The total work done on a particle is equal to the change in its kinetic energy
only if the forces acting on it are conservative
only if gravitational force alone acts on it
only if elastic force alone acts on it.
According to the work-energy theorem, the total work done on a particle is equal to the change in kinetic energy of the particle.