These concepts are difficult to remember and keep straight.
Electronegativity (EN) is the ability of an atom to attract and “hog” electrons towards itself. Think of an atom in a relationship, that atom is hogging the bonding electrons.
Electron affinity (EA) is the change in energy when an atom attracts an electron to become a negative ion.
Ionization energy is the energy needed to remove an electron from a neutral atom.