When water is boiled, the heat energy is transferred to the molecules of water, which begin to move more quickly. Eventually, the molecules have too much energy to stay connected as a liquid. When this occurs, they form gaseous molecules of water vapor, which float to the surface as bubbles and travel into the air.