A solution of cane sugar does not conduct electricity because cane sugar is a covalent compound, which is bonded by the sharing of electrons. In the solution, it does not have ions to conduct electrical charges across the solution. But common salt consists of sodium and chloride ions and is formed by the transfer of one electron of sodium to a chlorine atom. When this salt dissolves in water to form its solution, ions get dispersed across the solution due to which the solution conducts electricity across the solution.