Each answer is quoted as it is from the commentary of the Quran, with the passage it comes from.
Whenever a community (nation) ignored the Truth, it was destroyed, despite all its pomp and glory.
But, despite the best efforts of the prophet, his community did not pay heed to his exhortations, with the result that, in accordance with the Laws of God, it was destroyed.
Whenever the addressee communities rejected the prophets sent to them, they were destroyed by calamities which burst upon them either from the heavens or from the earth.