What role do competitive markets, monopolies, and oligopolies play in an economy

Each of them determine price, demand, and supply of goods, but in differing ways.