The function of an economic system is to Produce the goods and services that are necessary and in demand (the decisions are: what should be produced and how and where) and to Distribute the goods among people (in Communism this can be done centrally by the government and in Capitalism it's regulated by the market).