A text book I'm reading says at one point the following:
"In metric spaces are sequences the ones which chacterize closed sets and continuous functions".
What is exactly the meaning of that phrase?, is that every closed set and every continuous function can be described by sequences.
I know a couple of things about metric spaces and sequences that I believe are related:
$1-$ In a closed sets sequences inside a set converge to a point inside the set
$2-$ A function $f(x)$ is continuous iff $\{f(x_n)\}\to f(x)$ for every sequence convergent to $x$.
But I don't understand what it means by 'characterize', are sequences in metric spaces enough to define what closed sets and continuous functions are or there is something more behind that statement?
Basically what is going on is that metric spaces are sequential:
(Worded slightly differently, given any topological space, we can define the sequential closure, $\mathrm{cl}_{\text{seq}}(A)$, of some $A \subseteq X$ to be the smallest set $B \supseteq A$ which is closed under limits of (convergent) sequences. Then a topological space $X$ is sequenial iff $\overline{A} = \mathrm{cl}_{\text{seq}}(A)$ for each $A \subseteq X$.)
A nice fact about sequential spaces (completely analogous to what you have stated for metric spaces) is the following:
Fact. If $X$ is a sequential space, and $Y$ an arbitrary topological space, then a function $f : X \to Y$ is continuous iff given any (convergent) sequence $\langle x_n \rangle_{n \in \mathbb{N}}$ and any limit $x$ of $\langle x_n \rangle_{n \in \mathbb{N}}$, we have that $f(x)$ is a limit of the sequence $\langle f(x_n) \rangle_{n \in \mathbb{N}}$ in $Y$.
So if you have a sequential space $X$, then just knowing the families of the form $$L(\langle x_n \rangle_{n}) := \{ x \in X : \langle x_n \rangle_{n} \rightarrow x \}$$ is enough to determine
In this way, the convergent sequences (and their limits) in a sequential space $X$ completely characterise the closed sets (and therefore also the underlying topology) of $X$ and the continuous functions from $X$.
We also have the following nice implications: $$\text{metric} \Rightarrow \text{first-countable} \Rightarrow \text{sequential}$$ (and, as a bonus, neither implication reverses).
1I am not assuming the spaces are Hausdorff, so sequences can have multiple limits. Of course, metric spaces are Hausdorff.