Let $G$ be a discrete group, and $BG$ is the classifying space. It is well-known that the group cohomology of $G$-module M, is the same as the cohomology on $BG$ with coefficient in $\tilde{M}$, which is the associated sheaf of $M$.

Can someone explain how these two cohomologies are related?