Cane sugar is compound which does not have ions even in solution and contains only molecules. Hence, it does not conduct electricity. On the other hand sodium chloride solution contains free mobile ions and allows electric current to pass through it. This makes it a good conductor of electricity.