It's not for lack of worship of your Science god, that they had problems. It was for lack of a humane Philosophy.
What is so inhumane about "from each according to his ability, to each according to his need"? It sounds like lots of things Jesus says in the bible. There was near-famine in Russia, twice, on account of using the principles of Lysenko-ism, instead of Darwinism, to improve corn and wheat genetics.