We aren't really supposed to go into painting fundamentals but here's the short of it.
When you shade an object it's darker where less light hits it and brighter where light hits it.
You also get hue changes. So say a red object might have purple shadows and orange highlights.
This is how you create form. Even in pixel art.