Role of the State

How did Plato and/or Aristotle conceptualize the ideal state, or government? What would be its key functions?