Why is capitalism failing? It is acting as expected. Your problem is that you would prefer to live somewhere more socialist imo.
In a capitalist world in which you fully did away with socialism there would be no public schools, people would be less educated and they would earn less- although Americans area already shockingly uneducated .
15% of americans drop out of highschool. Those who have wealth would have far better education (they do now, but at least the poor receive some chance due to the social support structure).
Anywho America is the most powerful/wealthy country in the world. By all means capitalism is a wild success. It creates opportunities for exceptional people to excel. It does not do a great job carrying the average.