Changes in a material's temperature or state of matter are caused by changes to the internal energy. The energy required by different materials depends on their 'heat capacity' and 'latent heat'.
Part of Combined ScienceThe particle model
Listen to this podcast on specific heat capacity, with Ellie Hurer and James Stewart.