Sugar can be used for many things. But on its own it's just sugar.
Mix with water and add yeast, it ferments into ethanol. Then add oxygen and let it ferment into vinegar. At this point you can pickle with it.
As far as preserving things with sugar, we usually call that jam.