Individuals earn incomes in factor markets when they sell their labor. Businesses hire workers, acquire land, and borrow money in the factor market. Businesses sell their goods and services in product markets, and individuals spend their income on those products.
Through these participations all the resources that exist within a society will be distributed from one place to another. The residual amount that left after the main consumption could be allocated to improve infrastructure and other future investment.