Okay, this may be a silly question but I can't figure it out myself right now.
By definition $O \in SO(n)$ fulfils $O^T O=1$ and $\det(O)=1$.
For the generators of the group $ T_a \in so(n)$, this means because $O= e^{\alpha_a T_a}$ that $T_a^T = -T_a$ and $Tr(T_a)=0$.
1.) Now, for explicit matrix representations of our Lie algebra this means that our matrices representing the generators must be antisymmetric. This means that the matrices have no diagonal entries.
2.) The rank of a Lie algebra is defined as dimension of the Cartan subalgebra, which is the subset of all diagonal generators.
Putting 1.) and 2.) together means that the rank of every $SO(n)$ algebra is zero, which is certainly wrong. What's wrong here?