Why is the Earth's center still hot after millions of years?
There is a nice article from Scientific American, but the main point is:


  There are three main sources of heat in the deep earth: (1) heat from when the planet formed and accreted, which has not yet been lost; (2) frictional heating, caused by denser core material sinking to the center of the planet; and (3) heat from the decay of radioactive elements.


Other planets may have more or less radioactive material and this will make a difference over time as to whether they continue to have a molten core, or become volcanically and tectonically inactive.