Let $H$ be a Hilbert space and $\{e_j\}_{j \in \Gamma} \subset H$ be a orthonormal system. Then $\{e_j\}_{j \in \Gamma}$ is called an orthonormal basis of $H$ if
$\overline{\operatorname{span}\{e_j\: | \: j \in \Gamma \}} = H$.
Furthermore, we have $\{e_j \: | \: j \in \Gamma \}^\perp = \overline{\operatorname{span}\{e_j\: | \: j \in \Gamma \}}^\perp$
I have a lot of trouble to understand what would go wrong if we would not consider the closure in these both statements. Is there a counterexample for this? I appreciate any help.