When the temperature of a substance changes, the amount of random thermal motion on a molecular or atomic level changes accordingly; higher temperature means faster motion. A sufficient amount of temperature change will also result in a phase change. Cooling liquids freeze, heated liquids boil, heated solids melt, and so forth.
Hope this helps!