If you read a bit further down in the Wikipedia article, you'd see that there are different forms of socialism. Market socialism has a track record of working pretty well - certainly far better then the Dickensian societies it replaced.
The free market is an amazing mechanism for optimizing resource allocation... As long as you have money.