What event changes an atom into an ion?

A. the sharing of electrons with another atom
B. the gain or loss of one or more electrons
C. the gain or loss of one or more neutrons
D. a chemical reaction that forms a molecule