How can a single civil war have two different results?Discuss

How the civil war creates the rebirth of Somaliland which is stable and has a democratic government and fighting to be internationally recognised.

while Somalia was unstable for 20 years with the failed foreign inventions, with Islamic groups taking over the country. How can a single civil war have two different results?