The tiny particles in the sugar are totally impact together cause it's solid. And it's particles can vibrate. While the water is a liquid, it's particles is not that impact together that's why it doesn't have any infinite shape.And it's particles is unlike solid, it can move freely and go through each other.