DENVER (AP) -- Ryan Vogelsong pitched into the seventh inning, Buster Posey homered among his four hits and the San Francisco Giants broke out of an offensive slump to beat the Colorado Rockies 16-4 on Friday.
Brett Pill also went deep and Angel Pagan had three hits and scored four runs for the Giants, who had lost seven of their past eight.
Wilin Rosario homered for the Rockies, who have lost 9 of 11.
The Giants were shut out twice and held to one run in two other games during their recent slump but broke out against Colorado. They had a season high in runs and matched their season best with 16 hits.
San Francisco wasted no time in getting on the board against Jonathan Sanchez (0-3). The first four batters reached as the Giants took a 2-0 lead on their former teammate.
Sanchez, who tossed a no-hitter for the Giants on July 10, 2009, lasted only three innings, walking three and throwing two wild pitches.