What happens to particles of a substance when thermal energy is added to the substance?

It gets warmer.