Hund's Rule of Maximum Multiplicity states that electrons will fill degenerate orbitals singly before pairing up. This explains why the three p-orbitals in nitrogen are each occupied by one electron.