While the other pairs, sodium and potassium are the metals, nitrogen and iodine, chlorine and bromine, helium and oxygen are the non-metals. They do not form ionic bond. Hence, the correct pairs of elements likely to form ionic compounds are, potassium and sulfur, magnesium and chlorine