In this talk we discuss the local rigidity theorems with respect to scalar curvature by using the Ricci flow. We will show that if an open domain $V$ in a Riemannian manifold satisfying that the scalar curvature is nonnegative and isoperimetric constant is no less than that of Euclidean space, then $V$ is flat.