Gallian, in his Contemporary Abstract Algebra, first proves this theorem:
Theorem: Let $G$ be a group and let $Z(G)$ be the center of $G$. If $G/Z(G)$ is cyclic, then $G$ is Abelian.
Proof: Let $G/Z(G)=\langle gZ(G)\rangle$ and let $a\in G$. Then there exists an integer $i$ such that $aZ(G) = (gZ(G))^i= g^ i Z(G)$. Thus, $a= g^ i z$ for some $z$ in $Z(G)$. Since both $g^ i$ and $z$ belong to $C(g)$, so does $a$. Because $a$ is an arbitrary element of $G$ this means that every element of $G$ commutes with $g$ so $g \in Z(G)$. Thus, $gZ(G) = Z(G)$ is the only element of $G/Z(G)$.
Then the author goes on to say that: our proof shows that a better result is possible: If $G/H$ is cyclic, where $H$ is a subgroup of $Z(G)$, then $G$ is Abelian.
So, I follow the same proof to prove this new statement. Everything goes fine for the first three sentences, when I replace $Z(G)$ with $H$ in above proof, but, I can't see how to deduce here $g\in Z(G)$ that $G$ indeed abelian.