After its defeat in Kargil, Pakistan wanted to go back to morale-raising retribution. It reverted to greater militancy. It pushed in more foreign militants. Pakistan's aim is also to engineer a revolt to get local support. A responsive government, conscious of the needs of the people, could defeat Pakistan in this.
Many factors disturb the situation.
Pakistan's media pours out fundamentalist propaganda designed to hit Indian secularism. The point is often made that the people must be prepared to sacrifice their lives to uphold Islam. Osama bin Laden's cry for jihad against India gets into this fundamentalist mind-set. Pakistani propaganda keeps religious beliefs at a violent high point. To an extent India can beat this off by showing up the high points of a secular way of life.