What is money exactly?
At its core, money represents value. If I do some work for you, you give me money in exchange for the value I gave you. I can then use that money to get something of value from someone else in the future. Throughout history, value has taken many forms and people used a lot of different materials to represent money. Salt, wheat, shells and of course gold have all been used as a medium of exchange.
However, in order for something to represent value, people have to trust that it is indeed valuable and will stay valuable long enough for them to redeem that value in the future...