The processes by which matter transitions between different states, including melting, boiling, and condensation.