Given an abelian group $M$ and a ring $R$, how can one prove or disprove that $M$ has the structure of an $R$-module? When proving $M$ is an $R$-module, if it is not obvious how to define an action $R\times M\to M$ that satisfies the module axioms, what theorems/techniques can be used to test if $M$ is an $R$-module?
What techniques can be applied to show $M$ is not an $R$-module?
For instance, how would I test if $\mathbb{Z}/5\mathbb{Z}$ is a $\mathbb{Z}[i]$-module?
All examples, nonexamples, links, and theorems (that can be ingested by someone familiar with Dummit/Foote) are welcome!
A structure of (unitary left) $R$-module over an abelian group $G$ (written additively) is determined by a (unitary) ring homomorphism $R\to\operatorname{End}(G)$, where $\operatorname{End}(G)$ consists of the endomorphisms of $G$ under the standard sum operation and map composition.
To see why, suppose $G$ is an $R$-module. For $r\in R$, define $\lambda_r\colon G\to G$ by $\lambda_r(x)=rx$. It is easy to verify that $\lambda_r\in\operatorname{End}(G)$ and that the map $\lambda\colon R\to\operatorname{End}(G)$ is indeed a ring homomorphism.
Conversely, give a ring homomorphism $\varphi\colon R\to\operatorname{End}(G)$, define, for $r\in R$ and $x\in G$, $$ rx=\varphi(r)(x) $$ (the endomorphism $\varphi(r)$ evaluated at $x$). Again, it is easy to verify this gives $G$ a structure of $R$-modules.
Also easy is to see that doing the two steps in sequence takes back to the starting point: an $R$-module structure defines a ring homomorphism which in turn defines the same $R$-module structure and conversely.
In order to see whether $\mathbb{Z}/5\mathbb{Z}$ can be given a structure of $\mathbb{Z}[i]$-module, we need to find a ring homomorphism as above. The task is made easier by the observation that $\operatorname{End}(\mathbb{Z}/5\mathbb{Z}$ is isomorphic to the ring $\mathbb{Z}/5\mathbb{Z}$. If $f\in\operatorname{End}(\mathbb{Z}/5\mathbb{Z}$, we see that $f(x)=f(1)x$ (multiplication in $\mathbb{Z}/5\mathbb{Z}$).
A ring homomorphism $\mathbb{Z}[i]\to\mathbb{Z}/5\mathbb{Z}$ is determined uniquely by a ring homomorphism $\psi\colon\mathbb{Z}[X]\to\mathbb{Z}/5\mathbb{Z}$ such that $\ker\psi\supseteq\langle X^2+1\rangle$, by definition of $\mathbb{Z}[i]$.
Such a $\psi$ is determined once we fix $t=\psi(X)$. Such an element must satisfy $t^2+1=0$, which means $t=2$ or $t=3$.
Thus there are two module structures on $\mathbb{Z}/5\mathbb{Z}$. One is $$ (a+bi)[x]=[ax+2bx] $$ and the other one is $$ (a+bi)[x]=[ax+3bx] $$ as it turns out once we explicit the computations.
Can we find a structure of $\mathbb{Z}[i]$-module on $\mathbb{Q}$? No, because $\operatorname{End}(\mathbb{Q})\cong\mathbb{Q}$ and there's no rational number whose square is $-1$.
Neither we can find one on $\mathbb{Z}/3\mathbb{Z}$, for a similar reason.
The general problem is much harder: here we could use knowledge of how $\mathbb{Z}[i]$ can be obtained as a quotient ring of $\mathbb{Z}[X]$ and also of the endomorphism ring of the abelian group. However, endomorphism rings of abelian group are quite difficult to study and so are ring homomorphisms.