Both follow Master Chief, a Spartan super-soldier, in a war to stop the alien Covenant from activating a ringworld weapon called Halo that would wipe out all sentient life in the galaxy.
Halo 2 splits its attention between Chief on the Covenant's holy city and the Arbiter, an elite whose faith collapses as he learns what the rings actually do. Halo 3 brings the conflict to Earth and then to the Ark, where Chief, the Arbiter and Sergeant Johnson race to stop the rings while the Flood spreads beneath them.
Master Chief's name is not a mystery held back until the finale — he is John-117, and the books established it long before the games confirmed it. Finish the last level of Halo 3 and you get the story's real closing beat, set years later.