In a very simple form, if you're a fisherman you may have a surplus of fish, much more than you can eat before they go bad. Fish is not worth much to you, but maybe you need cloth for sails, the someone in the village collects and mends and sews cloth. They have a lot, but need food. Trading fish for cloth benefits you both.
Money is just an abstraction to smooth trades between people for resources they need. Scale to whatever level you want.