PHILADELPHIA (AP) — Ryan Howard hit a three-run homer with two outs in the bottom of the ninth inning to lift the Philadelphia Phillies to a 6-3 win over the Colorado Rockies in the National League on Wednesday.

Chase Utley hit a tying, RBI single off Boone Logan before Howard drove one out to left-center for his fifth career walk-off homer.

Closer La Troy Hawkins (2-1) got the first out in the ninth before Tony Gwynn Jr. reached on second baseman D.J. LeMahieu's throwing error. Ben Revere then followed with a single to right before Logan entered and allowed Utley's line-drive single to right that scored Gwynn.

Howard then connected on a 2-2 pitch for his ninth homer.

Jonathan Papelbon (1-1) tossed a perfect ninth for the win.

BREWERS 8, ORIOLES 3

MILWAUKEE (AP) — Yovani Gallardo earned a victory with his arm a day after getting a win with his bat as Milwaukee overcame two home runs by Nelson Cruz to beat Baltimore in an interleague matchup.

Ryan Braun hit an early two-run double and Khris Davis added a three-run homer in the eighth.

Cruz hit two solo shots and leads Major League Baseball with 19 home runs.

On Tuesday night, Gallardo delivered a game-winning RBI double as a pinch-hitter in the 10th inning.

Back on the mound, Gallardo (3-3) gave up three runs on four hits and five walks in 6 2-3 innings. He also went 1 for 2 at the plate.

Braun's double in the second inning helped the Brewers build a 4-1 lead against Bud Norris (3-5).

DIAMONDBACKS 12, PADRES 6

PHOENIX (AP) — Chase Anderson became the first Arizona pitcher to win his first three career starts and the Diamondbacks set a first-inning team scoring record with eight runs on eight hits.

Rookie Tommy Medica fell a single shy of becoming the first Padre to hit for the cycle.

Prado and Paul Goldschmidt both hit a two-run homer and drove in three runs for Arizona. Diamondbacks rookie Chris Owings had his first MLB four-hit game.

Arizona, taking two of three from the Padres, chased starter Tim Stauffer (2-1) after one-third of an inning.

Anderson (3-0) got big support for the second straight outing. The Diamondbacks scored 18 runs for him in his previous start.

REDS 3, DODGERS 2

LOS ANGELES (AP) — Brandon Phillips hit a two-run homer against Clayton Kershaw and Homer Bailey pitched seven effective innings to lead Cincinnati.

Bailey (5-3) allowed two runs and five hits while striking out six.

Yasiel Puig, who has reached base safely in 29 straight games, led off the Dodgers' sixth with an opposite-field homer to right-center that narrowed the gap to 3-2.

But former Dodgers closer Jonathan Broxton retired Puig and Hanley Ramirez on flyballs for the last two outs in the eighth after replacing Manny Parra with a runner at second, and Aroldis Chapman pitched a perfect ninth for his fifth save.

Kershaw (3-2) allowed three runs and seven hits in seven innings and struck out nine.

GIANTS 5, CUBS 0

SAN FRANCISCO (AP) — Tim Lincecum and five relievers combined on a two-hitter for San Francisco.

Lincecum struck out five, walked four and hit a batter in another wild but effective start. George Kontos (1-0) retired four straight before John Baker singled to right with one out in the seventh against lefty Jeremy Affeldt for Chicago's first hit.

The Cubs have the longest streak in MLB without being no-hit. The last time it happened to them was 1965, when Sandy Koufax pitched a perfect game for the Dodgers.

Hector Sanchez hit a two-run double, and three others drove in a run to help the Giants (34-19) extend the best record in the majors. San Francisco has won six of seven after holding the Cubs scoreless in consecutive games.

Edwin Jackson (3-5) gave up two runs on four hits in 5 1-3 innings for the Cubs, who have not won a road series since last September. He struck out nine and walked two.

YANKEES 7, CARDINALS 4

ST. LOUIS (AP) — Hiroki Kuroda snapped an 11-start road winless streak and Jacoby Ellsbury helped build an early lead with three hits and three RBIs in his first three at-bats for New York.

John Ryan Murphy added two RBIs for the Yankees, who took two of three without an appearance from Mark Teixeira, who is nursing a sore wrist, and wrapped up a 5-4 trip. Catcher Brian McCann made his first career start at first base in the finale.

Shelby Miller (6-4) allowed a career-worst seven runs and nine hits in five innings for St. Louis. Kolten Wong had a career-best four hits and an RBI, Matt Carpenter doubled twice with an RBI and Yadier Molina had two hits and two walks, but the Cardinals stranded 13 runners.

Kuroda (4-3) allowed three runs in 5 2-3 innings for his first road victory since last July 25 at Texas. He had been 0-7 since then, the longest drought of his career but is 1-1 away from Yankee Stadium this year.

MARLINS 8, NATIONALS 5, 10 INNINGS

WASHINGTON (AP) — Casey McGehee's fourth hit of the game drove in the go-ahead run in the 10th inning and Reed Johnson doubled home two more for Miami.

Ed Lucas singled off Jerry Blevins (2-2) to open the 10th and Christian Yelich walked. After Derek Dietrich bunted the runners over, the Nationals intentionally walked Giancarlo Stanton.

McGehee then lined a single off the base of the wall in left, scoring Lucas, while Yelich stopped at third. Johnson then doubled, scoring Yelich and Stanton to make it 7-4. Donovan Solano then singled home the eighth run.

Kevin Slowey (1-0) worked one inning for the win and Steve Cishek pitched the 10th, allowing one run.

METS 5, PIRATES 0

NEW YORK (AP) — Bartolo Colon carried a three-hitter into the eighth inning and New York got home runs from David Wright and Lucas Duda in a victory over sloppy Pittsburgh.

Colon (4-5) struck out a season-high nine in his second consecutive win, and Wright added an RBI single during an eventful afternoon. He also stole a base, made two throwing errors and robbed Andrew McCutchen of extra bases with a diving play at third.

New York salvaged the final two games of a 4-5 homestand after firing batting coach Dave Hudgens and replacing him with Lamar Johnson.

The Mets won the series against Pittsburgh for their first back-to-back victories at home since a three-game streak from April 23-25.