which one will only form covalent bond either nitrogen of silicon why explain in detail
Nitrogen is a non-metal. Therefore, the compounds between nitrogen and highly electropositive metal will be ionic in nature, as they will involve the transfer of electrons between the elements. On the other hand, silicon is a metalloid. The electronegativity difference between silicon and non-metals such as chlorine is not very high. Because of this, silicon generally forms covalent compounds.
Thus silicon will have a higher tendency to form covalent compounds than nitrogen.