Hanley Ramirez homered three times and drove in a career-high six runs to power the Red Sox past the Giants. Bryce Harper launched a two-run homer to the third deck in the Nationals' win.