Let $E=\mathbb{C}/L$ be an elliptic curve. Then $\mathbb{C}$ is contractible, and $L$ is the fundamental group of $E$. What's interesting is that we can find the cohomology of $E$, which is the same as the sheaf cohomology $H^i(E,\mathbb{Z})$ for the constant sheaf $\mathbb{Z}$, by taking the group cohomology of $L$ with trivial action on $\mathbb{Z}$. What's more interesting is that if $\mathcal{O}^\times$ is the sheaf of invertible holomorphic functions on $E$, then we can find the sheaf cohomology of this by considering the group cohomology of the action of $L$ on the group of invertible holomorphic functions on $\mathbb{C}$ defined by $(\omega f)(z)=f(z+\omega)$ for $\omega \in L$. In the case of $H^0$, this is obvious, since the holomorphic functions which are fixed by $L$ ($H^0$ in group cohomology), which is the same as invertible holomorphic functions on $E$, which is the same as the global sections of the sheaf on $E$ (and this is true for many other sheaves). In the case of $H^1$, one can see that both are the group of invertible line bundles on $E$.
My question is: why is the group ($L$-module) of holomorphic functions on $\mathbb{C}$ the natural one to consider? In this case, it's clearer, since we know what holomorphic functions are. If in general we have a covering map $U \to X$ for some space $X$, with $U$ a contractible universal cover, then given a sheaf on $X$, how do we know what sheaf on $U$ to consider? Specifically, which sheaf on $U$ gives the sheaf cohomology when we take the group cohomology of its global sections?

