First we note that $(n\mathbb{Z},+)$ is an infinite cyclic group. And it is a subgroup of $(\mathbb{Z},+)$ so in particular it's an infinite abelian group. From this we can conclude that $(n\mathbb{Z},+)$ is isomorphic to $(\mathbb{Z},+)$; in fact to get isomorphism just send $1$ in $n$.
Let $H$ be a non-trivial subgroup of $(\mathbb{Z},+)$.
Because $H$ is non-trivial: $∃m∈Z:m∈H:m≠0$.
Because $H$ is itself a group:$−m∈H$.
So either $m$ or $−m$ is positive and therefore in $\mathbb{Z}_{>0}$. So let we call, $n$, the smallest element in $H∩\mathbb{Z}_{>0}$. So let's generate $n$ and we obtain that H contains $(n\mathbb{Z},+)$.
To find a contradiction, suppose:
$∃m∈Z:m∈H∖n\mathbb{Z}$.
Then $m≠0$, and also $−m∈H∖n\mathbb{Z}$. Wlog $m>0$, otherwise we consider $−m$. By the Division Theorem:
$$m=qn+r$$
If $r=0$, then $m=qn∈n\mathbb{Z}$, so $0≤r<n$. Now this means $r=m−qn∈H$ and $0≤r<n$.
This would mean n was not the smallest element of H∩Z, and it's a contradiction. So $H=(n\mathbb{Z},+)$.