This happens for a metric space precisely when bounded is the same as totally bounded.
A subset $A$ of a metric space $X,d$ is
- bounded if $\sup\{d(x,y):x,y\in A\}<\infty$
- totally bounded if, for every $\varepsilon>0$, there exist $x_1,x_2,\dots,x_n\in A$ such that $A\subseteq\bigcup_{i=1}^n B_d(x_i,\varepsilon)$
where $B_d(x,r)=\{y\in X:d(x,y)<r\}$.
It is clear that any totally bounded subset is bounded, but the converse is not true; for instance, for any metric $d$ we can define a metric $d'$ inducing the same topology as $d$ where every subset is bounded, namely
$$
d'(x,y)=\frac{d(x,y)}{1+d(x,y)}
$$
Now just take a metric space which is not totally bounded (for instance, complete but not compact) and you have an example of a bounded set which is not totally bounded.
Now suppose that every bounded set in $X,d$ is totally bounded. If a sequence is bounded, the set of its points is totally bounded, so it is precompact and its closure in the completion $\hat{X},\hat{d}$ is compact. A sequence in a compact metric space always has a convergent subsequence. (The result can also be proved without mentioning completions.)
Also the converse is true. If every bounded sequence has a Cauchy subsequence, then every bounded set is totally bounded.
Indeed, suppose $A\ne\emptyset$ is bounded, but not totally bounded. Then there is $\varepsilon>0$ such that no finite set of balls of radius $\varepsilon$ centered on points of $A$ covers $A$. In particular, chosen arbitrarily $x_0\in A$, there are points of $A$ outside of $B_d(x_0,\varepsilon)$. Suppose we have chosen $x_0,\dots,x_{n-1}$. Then we can also choose $x_n\in A$ such that
$$
x_n\notin\bigcup_{i=0}^{n-1}B_d(x_i,\varepsilon)
$$
Thus we have a sequence $(x_n)$ such that, for $m\ne n$, $d(x_m,x_n)\ge\varepsilon$. Such a sequence can have no Cauchy subsequence.
The standard metric on $\mathbb{R}^n$ has the property that every bounded subset is totally bounded.
The Heine-Borel theorem can be generalized to all complete metric spaces: a subset of a complete metric space is compact if and only if it is closed and totally bounded.