As we know that
If $H$ is a Hilbe$\{e_n\}$ be an orthonormal sequence then for all $x\in H$ $$\|x\|^2\ge \sum_{k=1}^\infty|\langle x,e_k\rangle|^2$$ and the infinite sum converges to $$\sum_{k=1}^\infty\langle x,e_k \rangle e_k. $$
I was thinking for that if we don't have an orthonormal basis then can we give an example of such sequence which satisfies $\|x\|^2=\sum_{k=1}^\infty| \langle x,e_k\rangle|^2\ \ $ for all $x\in H$.
If you have the Parseval equality, then the $e_n$ are orthogonal because $$ \|e_n\|^2 = \sum_{k=1}^{\infty}|\langle e_n,e_k\rangle|^2=\|e_n\|^2+\sum_{k\ne n}|\langle e_n,e_k\rangle|^2. $$