A total of 3 wars and 1 major battle has transpired between India and Pakistan.
1948: Indian army decides to take over Kashmir before the Kashmiris can exercise their UN acknowledged right to choose. Pakistani army and some tribals push India back and free a 3rd of what is now known as Azad Kashmir (or Free Kashmir under the rule of Pakistan). Azad Kashmir itself bears the testimony of who won the war (i.e., Pakistan)
1965: Indian forces decide to attack Pakistan as they were thinking that because of their size, they will seize Pakistani territory. Pakistan's military answers the challenge with unprecedented bravery, (acknowledged by articles written by retired Indian generals in TimesOfIndia and in world's military magazines). Pakistan uses American supplied military hardware such as F-86 Sabres etc to kick Indian army's butt all the way to arabian ocean. The air-superiority was so evident that (documentedly) for every plane that Pakistan lost 7 Indian planes were destroyed. The war was started by Indians on 6th Sept and was ended by Pakistan on 11th Sept when India ended up conceding areas and went to UNSC to beg Pakistan to stop the war. The war produced some of the best military achievements and tactics taught today even in US military academy's such as West Point etc. One of Pakistan's airforce young star fighter pilot known as M. M. Alam (lookup on the google) set a world record when he destroyed 5 indian attacking aircrafts in less than 1 minute time.
1971: Pakistan army was trapped in Eastern Pakistan as there was a revolt in that region. Indians took advantage of the inner turmoil of Pakistan and helped the creation of what is called Bangladesh. This also gave them a chance to square off the humiliating defeat they suffered in 1965 at the hands of their smaller neighbor. Even in this war, on the Western front, Pakistan destroyed the major Indian navy ports of Dwarka and captured western part of Indian territories which had to be returned under peace agreement brokered by UN.
1999: Kargil, a group of mujahideen capture areas of Indian occupied kashmir. The fighting starts (according to Indian figures), over 4300 soldier's died, several fighter planes downed along with helicopter. 263 Pakistanis martyred. Indian sucked Clinton's balls to stop the battle and on America's insistance, Pakistan withdraws from what was being seen by every Pakistani is a sure victory and consequently, the decision to side with US costs the Pakistani Prime Minister of that time Nawaz Shareef his job. But a clear victory over Indians and their army suffered heavily in this war.
Read the Jane's defense weekly's archive on the 1965 war and how Pakistan showed a superior military muscle over its larger neighbor with lesser resources.
General Tommy Frank and other US general's on one or more occasions have testified to the fact that Pakistan one of the best armies in terms of discipline and tactics in the world and that is why it is no wonder that there is a close military cooperation between Pakistan and US.
Indian's in general have never been good war and related tactics. That is why India for the most part of its history has been occupied by invading forces. Pakistanis are different, they are the proud and very brave forebearers of very honorable traditions based of freedom at any cost.