Imagine some natural disaster, and everyone is being evacuated. The local convenience store is selling out of ice, as folks try to pack up enough food and stuff for their time away.
It comes down to the last bag of ice, and we've got two customers. A frat boy got in line first, wanting that ice to keep his beer cold. He takes the ice for $2 and leaves, happy.
The last guy is diabetic. He'd have willingly paid ten or even a hundred times that amount to keep his insulin fresh. But because the convenience store wants to keep pricing fair for everyone, the guy who REALLY needs the stuff wasn't able to signal the greater value he puts on the ice, and so the system fails him.
The ability to use pricing to communicate value, including the ability to substitute other goods or downstream value of goods incorporating a resource, is crucial to the functioning of the market. And the most obvious problem with socialism is that it attempts to forgo this information, making the decisions by fiat or by guess, when it's impossible to centralize the knowledge that pricing derives through an emergent distributed calculation.
Read more in Hayek's "The Use of Knowledge in Society": http://www.econlib.org/library/Essays/hykKnw1.html