How did the struggle between rich and poor affect Athens and Spartens?

What struggle?