Pakistan government was elected democratically by the people of Pakistan, Afghanistan's was not. The Pakistani government does not comprise of warlords. The Taiban is not in control of Pakistan, as evidenced by the decreasing terrorist violence in Pakistan (ethnic violence in Karachi not included). The Pakistani people have not tried to overthrow the government either.
Actually, this present gov is the only elected gov in Afghansitan. Before we didnt have it.