The sugar cane solution is a covalent compound. When it is dissolved in water, does not dissociate to give free ions which could migrate to cathode or anode. Hence, sugar solution is bad conductor of electricity. The sodium chloride solution mainly consists of free sodium and chloride ions which could migrate to positively charged electrodes. Hence, solution of sodium chloride is good conductor of electricity.