Step-by-step explanation:
When water freezes, it becomes ice (solid), and particles of a solid cant move as freely or easily. When water boils it GAINS energy while turning into gas, making it easier to move. If it stays the same, it will have the same energy and amount of movement.
And you are asking What happens when liquid water LOSES energy, When it loses energy, it freezes into a solid, (same explanation as to the first paragraph.)