If I understand basic geophysics correctly, the inner parts of the Earth can be divided into the mantle, consisting of rock, and the core, consisting of iron and nickel. The reason that the iron and nickel form the core is simply that they're a lot heavier, so they've sunk the deepest.
What I...