... why some countries succeed and why some don’t ...Not for want of trying.
That's literally the topic of the foundational book of modern economics, Smith's An Inquiry Into the Nature and Causes of the Wealth of Nations. And there've been many, many, many subsequent attempts at answers. If there is a modern concensus, it's that there is no accepted answer or understanding.
There are several reasons. It's difficult to run controlled experiments. There are a limited number of examples to study. There is a phenomenally entangled set of factors. And many attempts are influenced by specific experiences, ignorance, or ideological alignment.
You'll find free-market fundamentalists, institutionalists, Keynesians (fiscal policy), monetarists, American School (National System, following a national policy), socialists, communists, neoliberal school, feudalists, physiocrats, cyberntics / systems theorists, complexity economists, biophysical economics, and numerous others.
Among texts I'd recommend:
Mancur Olson, The Rise and Decline of Nations.
Lloyd Jeffrey Dumans, The Overburdened Econommy.
Gregory Clark, A Farewell to Alms. (The series this is part of contains numerous other explorations of economic history.)
Karl Polanyi, The Great Transformation
Arnold Toynbee, Lectures on the Industrial Revolution.