The squares of skew-symmetric matrices span all symmetric matrices
Setting $B = E_{ij} - E_{ji}$ for $i \neq j$, we get $B^2 = -(E_{ii} + E_{jj})$.
Thus $E_{ii} + E_{jj} \in \text{span}(X)$ for all $i \neq j$. Now, fix $i \neq j$. Since $n \ge 3$, there is a $1 \le k \le n$, $k\neq i,j$. Thus $E_{ii} + E_{jj},E_{ii} + E_{kk},E_{kk} + E_{jj} \in \text{span}(X)$. Writing $E_{ii}=a,E_{kk}=b,E_{jj}=c$, we have
$$ a+b,a+c,b+c \in \text{span}(X).$$
By substracting, we obtain $b-c,a-c \in \text{span}(X)$, hence $2a=(a-c)+(a+c) \in \text{span}(X)$. Thus $E_{ii} \in \text{span}(X)$ for every $i$, so $\text{span}(X)$ contains all diagonal matrices.
Now, let $Q \in \text{O(n)}$. Since $Q^T X Q=X$, we get $Q^T \text{span}(X) Q=\text{span}(X)$.
So, $\text{span}(X)$ contains all orthogonal conjugations of diagonal matrices, i.e. all symmetric matrices, as required. (The last sentence is the spectral theorem).
More directly, for every orthonormal subset of vectors $\{u,v,w\}$, \begin{aligned} 2uu^T &=(-vv^T-ww^T)-(-uu^T-vv^T)-(-uu^T-ww^T)\\ &=(vw^T-wv^T)^2-(uv^T-vu^T)^2-(wu^T-uw^T)^2. \end{aligned} Therefore the set of all symmetric matrices lies inside the span of the squares of all skew symmetric matrices. The reverse inclusion is obvious.
You could also use a result from a previous question of yours. Consider a symmetric matrix $A$ orthogonal to $\operatorname{span}(X)$ with respect to the Frobenius inner product. Let $\lambda_1,\dots,\lambda_n$ be the eigenvalues of $A.$ By Characterizing the dual cone of the squares of skew-symmetric matrices applied to $A$ and $-A,$ we get the conditions that for distinct $i,j,$ we have both $\lambda_i+\lambda_j\geq 0$ and $\lambda_i+\lambda_j\leq 0,$ which together give $\lambda_i+\lambda_j=0.$ Hence $\lambda_i=\tfrac12[(\lambda_i+\lambda_j)+(\lambda_i+\lambda_k)-(\lambda_j+\lambda_k)]=0$ for any distinct $i,j,k.$ For $n\geq 3$ the matrix $A$ is forced to be zero. So $X$ spans the space of symmetric matrices.