Rigidity theorems for closed hypersurfaces in a unit sphere