On hydrolysis of a nitride of an element, NH3 and an acid were formed, then the element is
Al
Li
B
Mg
Li,Mg are metals hence forming bases,Al forms amphoteric hydroxide and Boron forms acidic compound.