I think the problem is more profound than a simple apportionment of blame to the growth of science or to the decline in religion would suggest. The roots of our downfall have been there all along, the science and the tech merely came along and magnified our abilities for both creation and destruction. Human nature evolved in a time when the world was for all intents and purpose, unlimited. The palaeolithic hunter needing food to feed his family would not have considered wider ecological issues. When we turned farmers, we cleared forests without any concern for biodiversity loss, there was always more forest elsewhere anyway. And we can trace global warming back to that time, since the beginning of the Holocene we have been gradually reducing the planet's natural carbon storage mechanism through deforestation. When the Victorians discovered coal it was inevitable that we would exploit it and add to the problem. This is at the heart of human nature, accounting for both our meteoric rise and our soon to be crash and burn, two sides of the same coin, we exploit resources with great ingenuity with a view to medium and short term gain, but we have little instinctive regard for wider considerations. Similarly, if I saw a child of mine being brutalised in Syria, I would be on the next plane out there. However, I see someone else's child suffering in Syria, and I don't go. We evolved a nature that prospered in small knit tribal groups with little regard for the wider picture; we didn't evolve to be global citizens and that is what we are now faced with having to try to become.
1. Science and technology are directly implicated in much of the earth's and human problems. I have already highlighted things like plastics, pesticides, radiation, even certain medicines....and many other things.
2. Besides these products, there is the mindset that science & tech impose on people. A microscopic and zoom-in mindset that by its very nature is shortsighted and incapable of seeing the big picture.
3. On the other hand religion & philosophy impose a wider zoom-out perspective which by its very nature takes a holistic view of things. This broader view generates wisdom and foresight.
4. Science & tech also impose a mindset of power and greed. The impression that we can do anything we want and find a way out of any tricky situation. As I have mentioned earlier, colonizing other planets and getting away from a ruined earth, was one such dream. Hawking actually wrote that we should try to colonize other planets within the next 100 years!!
5. Religion on the other hand teaches self control and responsibility. These mindsets do matter enormously on the way we think and live.