Denser materials, like iron and nickel, sank to the core. Lighter materials, like aluminum and silicon, stayed closer to the Earth's surface. The crust and mantle are solid as they are not hot enough to be molten. The outer core is molten as it is hot enough, but the inner core is solid, even though there is enough heat for it to be molten, the pressure compresses it into a solid.