If the water contains a toxic ion with a 1+ charge, then the mobile Na+ ion would change places in the resin with the toxic ion to remove the toxic ion.
By having mobile H+ & OH- ions in the ion exchange resins, these ions will be replaced by the toxic ions in the water. Once the H+ and OH- ions are in water, they will combine to create H2O.
If the ions do not change places within the resins, then there will be no ion exchange. In order to prevent no reaction from happening, there must be a difference in affinity between the two ions being exchanged.
Overall, ion exchange is one of the main methods for water purification. It removes the unwanted ions in water effectively. For those impurities that are still present after ion exchange, there are other methods as well.