The sun heats the water, causing it to evaporate and become water vapor. That causes the puddle to dry up. The water vapor then rises up into the atmosphere, where it may condense and eventually fall back down to earth as rain.