Thermal Energy

Thermal energy is the energy of a body arising from the motion of its atoms or molecules and is directly proportional to the temperature of the substance.

Intermolecular forces vs Thermal Interactions

Intermolecular forces tend to keep the molecule together but the thermal energy of molecules tends to keep them apart. Three states of matter are the result of a balance between intermolecular forces and the thermal energy of the molecules.