The energy that producers get from the sun, along with water, allows them to begin photosynthesis, the process in which they make their food, because they are not able to absorb other forms of energy because they are plants.
Heat from the Earth's interior causes this motion to happen via convection currents in the mantle. Over a period of millions of years, this slow motion caused the single supercontinent to split into the seven continents you see today