Common salt is an ionic compound containing ionic bonds whereas cane sugar is a covalent compound containing covalent bonds. Since, ionic compounds conduct electricity and covalent compounds do not, hence common salt is a good conductor of electricity and cane sugar is a non-conductor of electricity.