When a solid is heated the particles gain energy and start to vibrate faster and faster. Initially the structure is gradually weakened which has the effect of expanding the solid. Further heating provides more energy until the particles start to break free of the structure.