This might be a duplicate. If so, then please let me know. Thanks!
Given a Hilbert space $\mathcal{H}$.
Consider a dense subspace $\overline{Z}=\mathcal{H}$.
Then it provides an ONB: $\mathcal{S}\subseteq Z$
(I guess it can be shown by slightly adjusting the usual proof via Zorn's lemma...)