Why do atoms and molecules move?
Due to energy ( momentum, inertia...)
Because they're free in gaseous or liquid solutions ( much less in a solid state).
They've got energy to spend (not lose) by motion; they gain energy, for example, by interacting with a magnetic field.
Attraction forces between atoms or molecules is always present.