When water moves through the water cycle it changes between these states of matter over and over again. ... When water at the ocean's surface is heated by the Sun it gains energy. With enough energy, the molecules of liquid water change into water vapor and move into the air. This process is called evaporation.