The best interpretation of the two flat portions of the graph is:
These show where changes of state are occurring.
These flat portions represent the phase changes from ice to water and from water to steam, where the temperature remains constant while heat is added, indicating that the energy is being used for the phase change rather than increasing the temperature.