At a simple level, it seems obvious that people do things, such as go to work, in order to get stuff they want and to avoid stuff they don't want.
Why exactly they want what they do and don't want what they don't is still something a mystery. It's a black box and it hasn't been fully penetrated.
Overall, the basic perspective on motivation looks something like this: