The sun hits bodies of water (ponds, oceans, pools, puddles) and it evaporates into a gas known as water vapor which goes up and forms a cloud. When the cloud gets heavy the water condensates back into little droplets and falls back to the ground. This is rain.