What happens when thermal energy is applied to a substance?

Its atoms gain kinetic energy.
Its particles slow down.
Its atoms gain potential energy.
All substances will melt.

Its atoms gain kinetic energy.