It has been observed that gaseous hydrogen chloride is a very poor conductor of electricity but a solution of hydrogen chloride gas in water is a good conductor of electricity. This is due to the fact that:
In its gaseous form, HCl cannot dissociate to form hydrogen and chloride ions, whereas, in its solution, it renders hydronium ions and chloride ions. These ions act as charge carriers, that are responsible for the conduction of electricity.