It’s surprising that socialism failed, it had all the pre-requirements to succeed: workers in charge, manufacturing without profit (they could sell for less and be very competitive), etc. It seems that the problem is in human nature.
People of Eastern Europe (former communist countries) have difficulties adjusting to capitalism, mainly because of the lack of absolute social criteria.