Geometry analysis on sub-Riemannian manifolds