Salt lowers the freezing point of water, which means that the water around the ice will stay liquid at a lower temperature. This allows the ice to melt more quickly. Sugar and pepper do not lower the freezing point of water, so they do not help to melt ice.