I will leave two solutions for this. The first one is shorter and easier to understand. The second one is maybe more constructive and hands down. Apart from some group theory basics, I am assuming that the reader knows that a subgroup of a cyclic group is cyclic (see https://proofwiki.org/wiki/Subgroup_of_Cyclic_Group_is_Cyclic).
First solution:
Assume that $G$ is generated by $g_1.\dots,g_n$ and consider a subgroup $N\le G$. If $N \cap \langle g_i \rangle = \{1\}$ for some $i= 1,\dots, n$ (assume w.l.o.g that $i =1$), then the following quotient homomorphism
\begin{equation}
\pi\colon G \longrightarrow G/\langle g_1 \rangle = \langle \pi(g_2),\dots,\pi(g_n) \rangle,
\end{equation}
is injective on $N$. So $N$ can be viewed as subgroup of $ G/\langle g_1 \rangle $ and by induction on the number of generators $n$, $N$ is finitely generated.
Now if for all $i$, we have that $N \cap \langle g_i \rangle \ne \{1\}$ , then $N \cap \langle g_i \rangle = \langle g_i^{e_i} \rangle $. This implies that $M :=\langle g_1^{e_1},\dots, g_n^{e_n} \rangle \le N$. Since $M$ has finite index in $G$ (notice how the quotient $G/M$ has at most $e_1 \cdots e_n$ elements), we have the following picture,
$M$ has finite index in $N$" />
which shows that $M$ has finite index in $N$. Then $N$ is a finite union of cosets of $M$, and thus $N$ is finitely generated.
Second solution:
Let $N\le G$ be a subgroup of the finitely generated abelian group $G$. Suppose $G=\langle g_1,\dots,g_n\rangle$.
Take $M=N \cap \langle g_2,\dots,g_n\rangle = \{m=g_2^{e_2}\cdots g_n^{e_n} \mid e_i \in \mathbb{Z}, m\in N\} $. Then $M\le\langle g_2,\dots,g_n\rangle$. So by induction, $M=\langle x_1,\dots,x_m\rangle$ for some $x_i$'s in $M$. Now $M$ only accounts for some elements of $N$ but not neccesarily all.
A standard element $g$ of $N$ is of the form
$g=g_1^{e_1}\cdots g_n^{e_n}$. If $e_1\ne 0$, then we do not know if $g\in M$.
Consider the set $A=\{e_1 \in \mathbb{Z} \mid\ \exists\ e_2,\dots,e_n\ \text{ such that } g_1^{e_1}g_2^{e_2}\cdots g_n^{e_n} \in N\}$. One can easily check that $A$ is a subgroup of $\mathbb{Z}$, and thus $A=n\mathbb{Z}$ for some $n\in A$ (if you have not seen this, try using Bezout's identity to prove it, it happens for all subgroups of $\mathbb{Z}$). So denote $x=g_1^{n}g_2^{e_2}\cdots g_n^{e_n} \in N$ (which exists since $n\in A$). Now we will see that $N=\langle x_1,\dots,x_m,x\rangle$.
Now let $g\in N$ but $g\notin M$, so $g=g_1^{j_1}\cdots g_n^{j_n}$ where $j_1\ne 0$. Then $j_1 \in A=n\mathbb{Z}$ by definition of $A$. And thus, there exist some $h\in\mathbb{Z}$ such that $j_1 = nh$. Then we have that $g x^{-h} = g_1^{j_1-nh}g_2^{e_1'}\cdots g_n^{e_n'}=g_2^{e_2'}\cdots g_n^{e_n'}\in M=\langle x_1,\dots,x_m\rangle$. So $g\in\ \langle x_1,\dots,x_m,x\rangle$ as we wanted.