Proof (finite-dimensional normed space iff unit ball is compact)

Finite-dimensional $\implies$ unit ball is compact

$B_X$ is closed and bounded, so compact by Heine-Borel.

Infinite-dimensional $\implies$ unit ball is not compact

We will construct a sequence $(x_n)_{n\in \N}$ in $B_X$ such that $\|x_n - x_m\| \geq 1/2$ if $n\neq m$. Then $(x_n)$ has no convergent subsequence and hence $B_X$ is not sequentially compact.

Pick any $x_1\in B_X$. Having constructed $x_1, \ldots, x_n$, the subspace $Y = \op{span}(x_1, \ldots, x_n)$ is proper (as $X$ is infinite-dimensional) and closed (as $Y$ is finite-dimensional). Therefore by Riesz's lemma, let $x_{n+1}\in B_X$ be such that $d(x_{n+1}, Y) \geq 1/2$. Then in particular $\|x_{n+1} - x_i\| \geq 1/2$ for all $i=1,2, \ldots, n$.