The last decade of the war on terror has turned Pakistan into a country that is divided within and doubted abroad.