Money is not valuable in itself — a banknote is just paper, and the digits in your bank account are just entries in a database. Money works because it solves a problem barter can't: the coincidence of wants. If you have shoes and want bread, pure barter requires finding a baker who happens to want shoes right now. Money is a universally accepted intermediary, so you sell shoes to anyone, then buy bread from anyone.
Economists define money by three jobs: a medium of exchange (everyone takes it), a unit of account (you price things in it), and a store of value (it holds worth over time). Modern money is fiat — backed not by gold but by collective trust and the government's authority. That trust is fragile: when people stop believing money will hold its value, you get hyperinflation, where prices double in days and cash becomes nearly worthless.