I think capitalism or socialism are neither problem nor solution; they're just tools, frameworks. The problem is greed and our willingness to accept it.
And socialism based on the idea that everyone is greedy and we should prevent that for betterment of everyone.
For socialism and communism to work, you have to limit greed, envy, and sloth.