Up until the 1980s when the western countries imposed strict trading restrictions with Yugoslavia (despite our friendly stance towards both the West and the East) my country was an economic power in the region. Wikipedia informs me that our annual GDP growth averaged 6.1 percent, health care was free, literacy was 91 percent, and life expectancy was 72 years.
We were simply broken as a casualty of the US effort to overthrow various communist governments in Eastern Europe. It was by no means an organic/natural effect of our socialism being dysfunctional.