1. Capitalism has failed in those countries, even if in different times and places one could say capitalism has succeeded
2. India and Mexico have major issues with their democracies—if a democracy is a system of government in which the citizens of a state hold collective power over their government, then there are many obstacles preventing either country from having a well-functioning democracy.
I can sympathise with your feelings that the current global status-quo is failing many people—I would agree—and I would argue India and Mexico are great examples of how unchecked capitalism and authoritarianism are causing an active erosion of democracy (and standard of living) in those two countries.