The Sun, many millions of kilometers away, provides the energy which drives the water cycle.
The ocean holds most of the Earth’s water, let’s begin there.
You can see in the illustration, water in the ocean evaporates as water vapor into the air.
The salt in the ocean does not evaporate with the water, however, so the water vapor is fresh.