The premise is partly mistaken, since these groups have attempted forms of outreach and governance, but the questioner is right that their methods have mostly alienated the Muslims they claim to represent.
- The Taliban issued a code of conduct and ran courts and services, al-Qa'ida's leadership at times urged restraint in a letter to al-Zarqawi in 2005, and ISIS ran offices for taxes, courts and schools in the towns it held.
- Mainstream scholars, among them the signatories of the Amman Message (2004) and the open letter to ISIS's leader in 2014, rejected their killing of civilians, takfir of Muslims and claim to the caliphate as contrary to the Qur'an and Sunnah.
- The Qur'an says that if the Prophet (saw) had been harsh and hard-hearted, the people would have dispersed from around him (3:159).
- Analysts differ on why the groups choose coercion: ideology, a belief that terror creates order, and the pressures of war are the explanations most often given.
Introduction
The question asks why groups such as ISIS, al-Qa'ida and the Taliban lack a hearts and minds policy. It is a fair question, and it contains an assumption which needs to be tested. The groups differ greatly from one another, in their aims, their methods and their relation to ordinary Muslims. The answer here describes what each has done, how mainstream Muslim scholars have judged it, and the reasons that analysts give.
It is important to treat the groups separately. The Taliban is a movement with local national goals in Afghanistan, al-Qa'ida is a network that carried out attacks across the world, and ISIS was an organisation that declared a caliphate in 2014. They have often been in conflict with one another.
What these groups did attempt
The Taliban issued a code of conduct, the Layha, in 2006 and later editions, which instructed its fighters on conduct towards civilians, and it established courts that, in many rural areas, were seen as quicker and less corrupt than the state's. Its approach was to win a local population over by providing justice and order, and in some places it was successful. This does not answer the objections of scholars to some of its methods, but it is not accurate to say that it had no policy at all.
Al-Qa'ida's own leadership was aware of the problem. In a letter of 2005 attributed to Ayman al-Zawahiri and addressed to Abu Musab al-Zarqawi in Iraq, the author warned that attacks on Shi'a and the filming of beheadings would alienate the Muslim masses, and that the movement should win the people. In 2013 the general guidelines issued in the same circle again told its branches to avoid harming civilians and Muslim populations. In Yemen, the al-Qa'ida branch in Mukalla in 2015 and 2016 ran services and tried to work with tribes.
ISIS, in the territory it held in Syria and Iraq, ran offices for taxes, courts, markets and schools, and it spent large sums on publicity. Researchers such as Charlie Winter have studied its media output and found that much of it showed a picture of a functioning state and not only violence. It is therefore wrong to say that it lacked all concern for support. The difficulty is that its governance rested on coercion, and the support it gained from local people was often fear or need, and not consent.
Why the outreach failed with most Muslims
Mainstream scholars hold that the reason is the content of the methods and not a lack of public relations. The Amman Message of 2004, backed by scholars of all schools, affirmed that anyone who follows one of the recognised schools is a Muslim and that takfir of them is not permitted. In 2014, over a hundred scholars signed an open letter to the leader of ISIS, which argued point by point that the group's killing of civilians, enslavement, forced conversion and proclamation of a caliphate were contrary to the Qur'an and Sunnah. The Marrakesh Declaration of 2016 affirmed the protection of minorities. The Qur'an says:
وَلَوْ كُنتَ فَظًّا غَلِيظَ الْقَلْبِ لَانفَضُّوا مِنْ حَوْلِكَ
"If you had been harsh and hard-hearted, they would have dispersed from around you." (3:159)
The Prophet (saw) forbade the killing of women and children (Sahih al-Bukhari and Sahih Muslim) and Abu Bakr (ra) told the army to Syria not to kill the old, the child or the woman, and not to cut down fruit trees or harm monks in their cells (Muwatta' Malik, with a break in the chain, accepted by the jurists). Scholars point to such texts to say that a method that kills the innocent cannot win lasting support, and that it breaks the very values that it claims to defend. The Prophet (saw) is also reported as saying that the Muslim is one from whose tongue and hand people are safe (Sahih al-Bukhari and Sahih Muslim).
Explanations given by analysts
Researchers offer several explanations. One is ideological. The text Idarat al-Tawahhush (The Management of Savagery), by Abu Bakr Naji, argues that deliberate violence can force a state into collapse and that order can then be built from chaos. It is one of the sources used by ISIS and is critiqued by scholars. A second explanation is strategic: a movement under attack by stronger forces may use fear as the cheapest way to control a population. A third is the pattern of fragmentation. As a group grows, younger and more extreme fighters often override the leadership, which is what the 2005 letter feared. A fourth relates to the wider context of war, collapse of states, and the support of outside powers for different sides, which leave civilians with few choices.
These explanations do not excuse the violence, and scholars across the spectrum have condemned it. They help us see that the issue is not simply that these groups never thought about public opinion, but that their theology of enforcement and their situation led them to methods that destroyed what support they might have gained.
What the Qur'an offers as a model
The Qur'an commands calling to the way of the Lord with wisdom and good counsel, and arguing in the best manner (16:125). It describes the Prophet (saw) as a mercy to the worlds (21:107). The Prophet (saw) forgave the people of Makkah at the conquest, and said to them: go, you are free (reported in the biographies of Ibn Hisham, with some chains weak). Scholars use this as a model of winning hearts through mercy, which is the policy that the question has in mind.
Conclusion
The groups named have tried various forms of outreach, but most Muslims have rejected them because their methods contradict the Qur'an and Sunnah, as stated in the Amman Message and the open letter of 2014. The Prophetic model of mercy and justice is the standard by which Muslim scholars judge any movement. Allah knows best.
References
The Qur'an: 3:159, 16:125 and 21:107.
Sahih al-Bukhari and Sahih Muslim, the prohibition of killing women and children, and the hadith on the safety of people from the Muslim's hand and tongue.
The Amman Message (2004); the Open Letter to Abu Bakr al-Baghdadi (2014); the Marrakesh Declaration (2016).
Abu Bakr Naji, Idarat al-Tawahhush; Charlie Winter, Documenting the Virtual Caliphate.
Ibn Hisham, al-Sira al-Nabawiyya; Malik, al-Muwatta'.