Why did the south lose the civil war?

Why did the south lose the civil war?