You're technically describing the downsides of authoritarianism, bordering on dictatorship, not communism. That being said, I don't believe communism would work either. Communism isn't the only system at play in those scenarios. Again, not defending communism as a good thing, just that the given reasons aren't actually due to communism but other parallel systems that were implemented at those times.