When magma in the mantle gets hot, it rises up to the top of the mantle, (against the crust) and begins to cool down. Since new magma is always being heated and rising, it pushes the now cooled down magma aside to take its place. When this occurs the cooled magma shifts the the earths crust when being pushes aside by the rising mantle.