In the first game of a pivotal homestand, Matt Cain gave up six runs in five innings as the Cubs beat the Giants 8-5 Tuesday night.