Heat or cool a beaker of water. Watch it melt, boil and freeze, and see what the molecules are doing.
Water can be a solid (ice), a liquid (water) or a gas (water vapor, or steam). Changing from one of these to another is a phase change.
Melting is solid to liquid. Freezing is liquid to solid. Both happen at 0 °C. Boiling is liquid to gas all through the water, at 100 °C at sea level. Evaporation is liquid to gas at the surface, and it can happen at any temperature. Condensation is gas to liquid.
During a phase change, the temperature stays the same even though heat keeps going in or out. That is why the graph has flat parts. The heat is pulling molecules apart, or letting them lock together, instead of changing their speed.
Higher up, there is less air pushing down on the water, so it boils at a lower temperature. Try a high altitude and watch the boiling point drop.
Each red and white shape is one water molecule. The red ball is oxygen and the white balls are hydrogen. The blue pairs above the beaker are molecules of air.
In ice, the molecules are locked in rows. They only wiggle in place. In liquid water, they slide past each other. In water vapor, they fly around far apart.
Temperature measures how fast the molecules move on average. The average molecular speed under the beaker goes up as the water gets hotter and down as it gets colder.