When you have a failed state you need to reset, put order, build credible institutions and then go back to democracy.
When you have no territorial control, you need to grab back the territorial control, and fight any armed groups that oppose resistance.