Nitrogen has the electronic configuration 1s2,2s2 2p1x 2p1y 2p1z and not 1s2,2s2 2p2x 2p1y 2p0z which is determined by
Hund's rule
Hund's rule states that pairing of electrons in the orbitals of a subshell (orbitals of equal energy) starts when each of them is singly filled.