When sugar is added to water, water molecules surround the each sugar molecules separating it and dissolving it into solution.
when you add a pebble to water the water will surround the pebble but won't breaks up the pebbles molecules and dissolve it.
That the main difference
Hope that helps