Which is the best description of what happens when thermal energy is removed from a substance?

It gains potential energy.
Its particles gain kinetic energy and move more quickly.
Its particles lose kinetic energy and move more slowly.
It loses potential energy

Its particles lose kinetic energy and move more slowly.