Answer is: The substance is boiling or condensing.
Stage 1 is solid state of substance.
Stage 2 is melting (from solid to liquid) or freezing (from liquid to solid state) of the substance.
Stage 3 is liquid state of substance.
Stage 4 is boiling (from liquid to gas) or condensing (from gas to liquid state).
Stage 5 is gaseous state of substance.