Matt Cain's first start since June 13 lasted just 2.1 innings as the Red Sox, powered by three Hanley Ramirez homers, beat the Giants 11-7.