The nitrogen atom has 5 valence electrons.
The nitrogen atom shares it's three electrons with three hydrogen atoms to form ammonia molecule. These are bond pair electrons.
There are two unshared electrons in nitrogen atom. These are called lone pair of electrons.
Therefore, there are total four electron pairs (three bond pairs and one lone pair).