Solids and Liquids

What happens when materials are heated or cooled.