I want to record a somewhat less elementary, but perhaps more conceptual answer.
Note first that $\langle 2 \rangle$, $\langle x \rangle$ and $\langle 2, x \rangle$ are all prime ideals of $\mathbb{Z}[x]$. Indeed, the quotients by these ideals are isomorphic, respectively, to $(\mathbb{Z}/2\mathbb{Z})[x]$, $\mathbb{Z}$ and $\mathbb{Z}/2\mathbb{Z}$, which are all integral domains.
So in particular we have a proper inclusion of nonzero prime ideals
$0 \subsetneq \langle x \rangle \subsetneq \langle x, 2 \rangle$
in which the smaller ideal is principal. Now let $R$ be any integral domain and let
$I \subset J$ be a proper inclusion of nonzero prime ideals, with $I$ a principal ideal. Then $J$ cannot be principal. Indeed, $I = \langle x \rangle$ with $x$ a prime element. Suppose that also $J = \langle y \rangle$. Then $x \in J$, so that
there exists $a \in R$ with $x = ay$. Since $ay = x \in I$ and $I$ is prime, we
have either $a \in I$ or $y \in I$. If $a \in I$, then $a = bx$, so $x = byx$ or
$x(1-by) = 0$ in the domain $R$; since $x \neq 0$ we conclude $by = 1$, i.e., $y$
is a unit and therefore $J = R$, contradiction. Similarly if $y \in I$,
then $y = bx$, so $x = abx$ and we conclude that $a$ is a unit and thus $I = J$, contradiction.
Added: A variant on the above argument is: if $0 \subsetneq I = \langle x \rangle \subsetneq \langle y \rangle = J$ with both $I$ and $J$ prime, then $x$ and $y$ are both irreducible elements and $y$ properly divides $x$, contradiction. This is technically a stronger fact because in an arbitrary domain a generator of a principal prime ideal is necessarily an irreducible element but the converse generally does not hold. However, the easiest way to show that an element $x \in R$ is irreducible is to show that $\langle x \rangle$ is prime, or equivalently that
$R/\langle x \rangle$ is a domain. To show that a nonprime element $x$ is irreducible is much more delicate!
Remark: If $R$ is a commutative Noetherian ring, then if $J$ is any nonzero principal prime ideal, there cannot be any nonzero prime ideal $I$ -- principal or otherwise -- with $0 \subsetneq I \subsetneq J$. This is a special case of Krull's Principal Ideal Theorem.