The water evaporates and changes from a liquid to a gas. As the water cools down, it changes from a gas back into a liquid, and sometimes from a liquid to a solid, forming clouds.
When the clouds become too heavy, water falls back to the ground as rain, hail, or snow.