The answer is; The sun
Photons from the sun have energy and when they hit the earth, some of the energy is absorbed while other is reflected back to space. The energy that is absorbed by the earth ensures the liquid water does not turn back to the ice. The power of the sun is evident as the polar regions, that receive less sunlight, have glaciers in place of oceans.