Sanford had two goals and an assist, Robert Thomas had a goal and two assists, and Brayden Schenn and Ryan O'Reilly each had a goal and an assist for St. Louis (37-17-10), which leads the Dallas Stars by four points for first place in the Central Division. Jordan Binnington made 25 saves.
"I don't know the last time we had a game like that here," Sanford said. "I don't know that that's our style, but those ones are always fun to be part of."
WATCH: [All Blackhawks vs. Blues highlights]
Duncan Keith had a goal and an assist, Jonathan Toews had two assists, and Corey Crawford made 31 saves for the Blackhawks (27-28-8), who have lost 10 of 13 (3-8-2).
"Obviously a few different changes in the lead there and we had the lead, so back and forth all game," Keith said. "But as the games are, you'd like to come out on top and obviously it didn't happen. A lot of breakdowns defensively and that's the game."
Sanford's second of the game, a power-play goal at 13:35 off a loose puck in the slot, gave the Blues a 6-5 lead.
"That's a good rush by [Thomas] there and some good chances before that," Sanford said. "It's a bouncing puck and I've been trying to get to the net, and it was sitting right there for me and I was trying to put it on net, and it finds its way in."
O'Reilly and Sanford scored 16 seconds apart in the third period to give St. Louis a 4-3 lead. O'Reilly tied it 3-3 at 3:47, and Sanford made it 4-3 at 4:03. Matthew Highmore tied it 4-4 at 5:16.
"Obviously we got the lead there and that's when we've got to shut the door and make sure we're smart and disciplined there and not give up so much," O'Reilly said.