The valency of nitrogen is 3 and that of hydrogen is 1. N needs three electrons to attain a stable octet and H needs one electron to attain stable duplet. Hence, one atom of nitrogen shares three electron pairs one with each of the three atoms of hydrogen.
Electron Dot Structure: