As Orlove noted, barter may occur in commercial economies, usually during periods of monetary crisis. During such a crisis, currency may be in short supply, or highly devalued through hyperinflation. In such cases, money ceases to be the universal medium of exchange or standard of value. Money may be in such short supply that it becomes an item of barter itself rather than the means of exchange. Barter may also occur when people cannot afford to keep money (as when hyperinflation quickly devalues it).
In England, about 30 to 40 cooperative societies sent their surplus goods to an "exchange bazaar" for direct barter in London, which later adopted a similar labour note. The British Association for Promoting Cooperative Knowledge established an "equitable labour exchange" in 1830. This was expanded as the National Equitable Labour Exchange in 1832 on Grays Inn Road in London. These efforts became the basis of the British cooperative movement of the 1840s. In 1848, the socialist and first self-designated anarchist Pierre-Joseph Proudhon postulated a system of time chits. In 1875, Karl Marx wrote of "Labor Certificates" (Arbeitszertifikaten) in his Critique of the Gotha Program of a "certificate from society that [the labourer] has furnished such and such an amount of labour", which can be used to draw "from the social stock of means of consumption as much as costs the same amount of labour."
If you've ever swapped one of your toys with a friend in return for one of their toys, you have bartered. Bartering is trading services or goods with another person when there is no money involved. This type of exchange was relied upon by early civilizations. There are even cultures within modern society who still rely on this type of exchange. Bartering has been around for a very long time, however, it's not necessarily something that an economy or society has relied solely on.
It’s hard to answer that without actually seeing a modern gift economy in action. Luckily, modern gift economies actually do exist. On a small scale, they exist among friends, who might lend each other a vacuum or a cup of flour. There’s even an example of a gift economy on a much larger scale, albeit one that’s not always in operation: The Rainbow Gathering, an annual festival in which about 10,000 people gather for a month in the woods (it rotates among various national forests around the country each year) and agree not to bring any money. Groups of attendees set up “kitchens,” in which they prepare and serve food for thousands of people every day, all for free. Classical economists might guess that people would take advantage of such a system, but, sure enough, everyone is fed, and the people who don’t cook play music, set up trails, teach classes, gather firewood, and perform in plays, among other things.