The sun heats the water in oceans, rivers, puddles and even laundry hanging on clotheslines. The droplets evaporate and heat up into the air as water vapour.
When the water vapour rises into the cooler air above the earth, it condenses or turns back into liquid water droplets. The droplets then collect and form clouds.