The word you are looking is Soviet Russia. It's not a panacea.
European Union countries would likely be as developed if they were in a single market union. Governments have the control on the population that they can afford. Poorer societies are more prone to crime, less law compliant. Poorer societies can't afford a police state.