Observe how substances transition between solid, liquid, and gas.
Heating a substance raises its temperature until it reaches a phase transition. During the transition (melting or boiling), the temperature stays constant as energy goes into breaking intermolecular bonds rather than raising temperature.