when the earth is formed, it's condition can best be described as : Hot and molten
Mostly because of the magma that it contain. When the temperature of the magma decreased, its substance turn into a solid substance that eventually will become the land that we stepped on.