Gain enough kinetic energy to get past each other. Ad you heat up a substance, the temperature increases as does the kinetic energy of the particles. At a point the temperature of the substance will stop increasing. The energy is now being used to increase the potential and move the particles further apart.