The decay of radioactive elements (essentially, nuclear fission) and a massive store of heat from the violent collisions from the Earth's formation and early years when planetesimals and asteroids...
The sun is the source of nearly all the energy on earth. Oil and gas are still made by the sun technically because they are dead animals, animals need the sun to live ect.