We study the geometry of a sub-Riemannian manifold (M, HM, VM, g), where HM and VM are the horizontal and vertical distribution respectively, and g is a Riemannian extension of the Riemannian metric on HM. First, without the assumption that HM and VM are orthogonal, we construct a sub- Riemannian connection ▽ on HM and prove some Bianchi identities for ▽. Then, we introduce the horizontal sectional curvature, prove a Schur theorem for sub-Riemannian geometry and find a class of sub-Riemannian manifolds of constant horizontal curvature. Finally, we define the horizontal Ricci tensor and scalar curvature, and some sub-Riemannian differential operators (gradient, divergence, Laplacian), extending some results from geometry to the sub-Riemannian setting.