No, motivating people simply requires giving them more money (performance bonuses, stock options, thirteenth salary/end-of-year bonus...). DUH. OBVIOUSLY.
People in management positions always try to weasel their way out of paying their people more. (Well, not always, not all of them do, but you get my point.)
Unless you work on truly cutting edge stuff (by which I mean the likes of SpaceX and its equivalents in different industries), motivation is money.
It's as simple as that. No need to twist yourself into all kinds of pretzels.
No, it's not the coworkers (which, by the way, are not your friends unless you meet outside of work), it's not the job as such (very few people outside of art actually enjoy doing their job as an activity after say 10 years of doing it), it's money.
Money is the primary motivator (by far). You work for money. End of story. Anyone saying otherwise is a bs artist.