The cohomology of the braid group $B_3$ and of $SL_2(Z)$ with coefficients in a geometric representation