World War II was a global conflict involving nearly every country in the world. But who was on each side—and why?