Step-by-step explanation:
if its the same compound what happened to make it different?
they were put in water
lot of those compounds have Cl in them making them salts
NaCl is Sodium Chloride which is regular table salt
In water, the sodium atoms and chlorine atoms separate
They move around in the water as positively and negatively charged ions.
This separation of charge allows the solution to conduct electricity.
britannica