The eastern part of Germany was actually richer than the western part prior to World War II. The entire country’s economy was then destroyed by the war. What happened afterwards, though, shows the difference between socialism and free enterprise.
Source