When a solid is heated, its molecules gain energy and become very active. They try to overcome the intermolecular forces of attraction. So they vibrate faster and start to move and the intermolecular space between them increases. If the temperature continues to increase, at a certain point, the intermolecular space between the molecules of the solid increases to an extent that it changes into a liquid.