If $K$ is compact then it is bounded. (that it is closed was very easy to prove)
Definitions
.A set is called compact if every sequence has a convergent subsequence.
Attempt
Let $K$ be compact and assume that it is not bounded. Let $x \in K$ be any point. Then for every $n \in \mathbb N$ let $x_n$ be such that $d(x,x_n) > n$.
Now I want to show that $x_n$ does not have a convergent subsequence. I tried by contradiction: assume $x_{n_k}$ was a convergent subsequence and $x_{n_k}\to y$ for some $y \in K$. How to proceed?
To complete the proof indicated (although I Balla's approach is generally better) show that $x_k$ is not cauchy, given $n_0$ for any $m>n_0$ we have
$$d(x, x_{m}) \leq d(x, x_{n_0}) +d(x_m, x_{n_0})$$ and so
$$d(x, x_{m}) -d(x, x_{n_0}) \leq d(x_m, x_{n_0})$$ and by chosing $m$ large enough we have that $d(x_m, x_{n_0})$ is large.