Consider a metric space $M$ that is not complete. Let $\{x_n\}_{n \in \mathbb{N}}$ be a Cauchy sequence in $M$ with no limit point.
Let $\hat{M}$ be the Cauchy completion of $M$, with the inclusion map $z \mapsto \hat{z} : M \to \hat{M}$. Let $w$ be the limit point $w = \lim\limits_{n \to \infty} \hat{x_n}$.
Define a function $f : M \to \mathbb{R}$ by $f(x) = \frac{1}{d(\hat{x}, w)}$. This is a continuous function since $x \mapsto \hat{x}$ is continuous, $y \mapsto d(y, w)$ is continuous, and $z \mapsto \frac{1}{z}$ is continuous.
However, $f$ is not bounded because $\lim\limits_{n \to \infty} d(\hat{x_n}, w) = d(\lim\limits_{n \to \infty} \hat{x_n}, w) = d(w, w) = 0$, and therefore $\lim\limits_{n \to \infty} \frac{1}{d(\hat{x_n}, w)} = \infty$.
If we dig into the precise definition of the completion of a metric space, we see that $f(x) = \frac{1}{\lim\limits_{n \to \infty} d(x, x_n)}$. Proving that $f$ is a continuous function from this definition directly is a bit more challenging, but it can be done.
Edit because of comments: the limit $\lim\limits_{n \to \infty} d(x, x_n)$ exists for all $x \in M$. Note that by the triangle inequality, we have $|d(x, x_n) - d(x, x_m)| \leq d(x_n, x_m)$. Consider an arbitrary $\epsilon > 0$. Take an $N$ such that for all $m, n \geq N$, $d(x_n, x_m) < \epsilon$. Then for all $m, n \geq N$, $|d(x, x_n) - d(x, x_m)| < \epsilon$. Thus, the sequence $d(x, x_n)$ is a Cauchy sequence in $\mathbb{R}$, hence it has a limit. The limit cannot be zero, or $x$ would be the limit of $x_n$.
It can be shown that $\lim\limits_{n \to \infty} d(x, x_n)$ is continuous with respect to $x$. In fact, each function $x \mapsto d(x, x_n)$ is continuous with respect to $x$, and the sequence uniformly converges in $x$ to $\lim\limits_{n \to \infty} d(x, x_n)$.
This demonstrates the alternate definition of $f$ is a continuous function. One can again show that $\lim\limits_{m \to \infty} \frac{1}{\lim\limits_{n \to \infty} d(x_m, x_n)} = \infty$.