Relaxation and overlap probability function in the spherical and mean spherical model