Who ran each polis?

Ancient Greece was a collection of city-states known as the polis. They were controlled by a city council at the behest of the people. Some of the polises were true democracies where everyone voted on each decision.