Atoms like carbon and nitrogen do not form ions because the electronegativity of these atoms are not that high nor very low which means electrons are fairly stable in the atom. While chlorine has very high electronegativity and for sodium very low, atoms tend to receive or release electrons.
You can try recalling and rehearsing information about the memory.