I'm not entirely sure from your post, but I think you're talking about the energy levels in the LS or Russell-Saunders coupling scheme for multi-electron atoms. The basic idea is that apart from the electrostatic attraction from the nucleus and repulsion of electrons from each other, the next greatest contributing factor is the relativistic effect of spin-orbit coupling. Loosely speaking, an electric field in one frame turns into something involving a magnetic field in another frame --- the moving electron actually sees a magnetic field. This magnetic field interacts the spin magnetic moment of the electron, to produce a further splitting between certain orbitals --- the fine structure. The term is proportional to \hat{L}\cdot\hat{S} so \hat{J} commutes with the Hamiltonian, where the L, S and J refer to the total angular momentum of the respective type, summed over all the electrons. Thus we can label the atomic (i.e. multi-electron states) with the term symbols ^{2S+1}L_J. Thus we need to calculate all the allowed states of S and L for a given set of electrons. It's slightly simplified as we only need to think about the electrons not in a full subshell. However, it's slightly complicated by the need to consider exchange antisymmetry.
So the answer to your question is that different alignments of spin and angular momentum give different energies.
If you want, I can work through some examples of calculating the allowed states, their term symbols and their relative energies (qualitatively).