If a tree has exactly one leaf, $v$, consider the (unique) edge $(u, v)$ incident on $v$. By hypothesis, $u$ cannot be a leaf, hence must have degree $\geq 2$. Consider an edge $(u_{1}, u)$ incident on $u$ and distinct from $(u, v)$. By hypothesis, $u_{1}$ cannot be a leaf, hence must have an edge $(u_{2}, u_{1})$ incident upon it and distinct from $(u_{1}, u)$. And so on. Thus, we would get an infinite path $v, u, u_{1}, u_{2}, \ldots$, which is impossible. This contradiction implies that there will be some $u_{k}$ that is a leaf.
If a tree has no leaves, then every vertex has degree $\geq 2$. Since the tree is connected, one can construct a cycle, contradicting the hypothesis that the graph is a tree.