Mantle flow and the evolution of the lithosphere