If $R = \mathbb{Z}$, $0 \neq I \unlhd \mathbb{Z}$, and $0 \neq f: I \to \mathbb{Z}$ is an arbitrary $\mathbb{Z}$-module homomorphism, then $f$ must be injective.
This leads to the question:
If $R$ is an integral domain, $0 \neq I$ is an ideal of $R$, and $0 \neq f: I \to R$ is an arbitrary $R$-module homomorphism, can we conclude that $f$ is injective? Here, the module structures of $I$ and $R$ over $R$ are assumed to be $r \cdot x := r * x$ and $r \cdot y := r * y$, where $r \in R$, $x \in I$, and $y \in R$, with $*$ representing the multiplication operation in the ring $R$.
If $R$ is not an integral domain, then there is a counterexample. Let $R = \mathbb{Z} \times \mathbb{Z}/2\mathbb{Z}$, $I = 2\mathbb{Z} \times \mathbb{Z}/2\mathbb{Z}$.
$$f: 2\mathbb{Z} \times \mathbb{Z}/2\mathbb{Z} \longrightarrow R = \mathbb{Z} \times \mathbb{Z}/2\mathbb{Z},$$
$$(x, y) \longmapsto (0, y),$$
then we can see that $f$ is not injective.