Cooling caused the contraction and pressure that allowed some parts of the crust to move upward and produce mountains, while other parts of the crust buckled downward, creating ocean basins and other depressions
The crust is composed of different plates that move either towards or past each other, carried along the currents in the upper mantle (specifically the asthenosphere)
The Earth was once a supercontinent called Pangaea, which split into two sub-continents, Laurasia and Gondwanaland, and the Thetys Sea separated that. Pangaea might get reformed around 250 to 300 years from now.