Isn't it nitrogen AND chlorine? Both are nonmetals, and they need to gain electrons in order to bond.
After ionization, sodium gains a net positive charge cuz sodium loses its 1 valence electron to gain the nearest stable octet which is neon{Ne}. Hope it helps