Proof (finite p-group has non-trivial centre)
Consider $G\actson G$ by conjugation.
The centre of $G$ is exactly the union of conjugacy classes of size 1. Conjugacy classes (orbits) partition $G$, so $$ \begin{align*} p^n = |G| = |Z(G)| + \sum_{n>1} n\times\text{(number of conjugacy classes of size $n$)}. \end{align*} $$ Since the size of a conjugacy class divides $|G| = p^n$, all conjugacy classes of size $>1$ have size divisible by $p$.
Thus $p\mid |Z(G)|$. Since $e\in Z(G)$, we have $|Z(G)| \geq p >1$.