The Solar Nebula Theory
The young planets start out fairly warm (in a liquid or nearly liquid state). Heavy elements start to sink… This concentrates the radioactive elements in the center (and explains why the earth’s core is hot).
This process is still occurring in the giant planets. It releases gravitational energy.