In fact, it is still cooling, with heat energy left over from the time of formation of Earth still slowly working its way outward. Energy always flows from hotter to cooler material; in Earth's interior the central heat in the core drives convection currents in the mantle that bring hot mantle material up toward the crust, and colder mantle and crustal rocks sink downward.