Homology of curves and surfaces in closed hyperbolic $3$-manifolds