A limited answer based on what I have known about these terms in fantasy games, so it may not be what you're looking for:
A sorcerer can cast spells because of his genetics (his bloodline).
A wizard can cast spells because of extensive book studying.
A shaman can cast spells because of his ability to interact with the spirit world.