Name a single country that is run by military and is successful today. OR has good economy OR name a single country in G20 that is run by military directly or indirectly (like Pakistan). You won't find it. It will never happen that a military run country can become successful. Its impossible. Look around, you will see worst examples in the world being run by the military like Myanmar (A loser General just for the sake of power, ousted the democratic govt and brought the country into civil war). Look at Sudan. Another civil war because of Generals greed or lust for power.
If we don't understand basic flaw with Pakistan then we will never succeed. Military is never trained or built to run a country. The worst thing which can happen to a country is military General running the show. Because they are never meant to.
Now why General running the show is very disastrous because its very simple. They do not rule by moral authority. They rule by brute force (the army). The brute force (army) do not regard any law of the land but the command of their leader. In professional militaries, the chiefs are bound to retire within 1-2 years, so rotation keeps happening. No general should develop a lust for power so they break constitution and everything for their own power. Its disasterious for the military as well. Because there are so many deserving generals who just retire and never get the chance to become COAS. That myanmar general is now approaching 70 but is still in power. Now he can't let the power go, because then he'd face accountability. If there are politicians in power, they face accountability from elections every 4 or 5 years. But Generals NEVER face accountability because they have brute force. No judge, no police can dare write a case over them. They are above accountability and that is another fundamental flaw why military general should never be in charge of the country. See Gen Zia ruled Pakistan for a decade, the whole extremism / terrorism seeds were planted by him. He brought a madrassa revolution in the country which were actually jihadi factories. No one could stop him, no opposition, no judge, no public. That is why you don't crave for military generals to be in charge. That is a poison you need to stay away from. They have a very specific job, they should not be doing anything else.