What is anyone's military achievement when arrayed against an adversary 4x larger with similar disparity of resources? What could have Ukraine done had the West/NATO not supported it in the face of Russian aggression? It would have been swallowed whole. What would have happened to Israel with no US military and financial support?
What do Pakistan's armed forces offer us viz a viz India without significant support from a major power? Since 1971, no major change in our positions on the ground. The ability to hit back at India so they never take us lightly. A potent conventional and nuclear capability, all with a very limited budget.
If you are expecting Pakistan to take over all of Kashmir then you should revisit your assumptions. Militarily, our failures and success can be explained, but emotional charges cannot.
Perhaps we should also understand our own potential first vis a vis our adversaries before having unrealistic expectations.