The church has always flourished "on the edges." In the first century, that was the "fringe" of the Roman Empire. In the centuries following, it was Asia Minor. In the Middle Ages, it was Europe. In the Enlightenment, it was the New World. In the 17th and 18th centuries, it was South America. Today, it's Africa. Xy always flourishes away from the power centers. Today, the USA is the power center. No surprise that its dying here -- and has been dead in Europe for ages.
I disagree that it's due to advancing education and science. Those things are great, but they don't stand in direct opposition to spiritual formation. In fact, the church is making the greatest changes in areas where education and science dominate. People are hungry for spiritual meaning that is relevant. What they're not hungry for is a return to rigid dogma.
As a member of the clergy, I've been studying this phenomenon for years. In our pluralistic society, no one has a dominant spiritual hand anymore. The field must be shared. We must develop tolerance, inclusion, and a deeper identity than denominational "brand."