PHILADELPHIA (AP) David Wright hit a long home run on his first major league swing in 133 days, Wilmer Flores went deep twice and the New York Mets set a franchise record with eight homers in a 16-7 victory over the Philadelphia Phillies on Monday night.

Yoenis Cespedes, Juan Lagares, Travis d'Arnaud, Daniel Murphy and Michael Cuddyer also connected for the NL East-leading Mets. New York set a franchise record with 15 extra-base hits - seven doubles and eight homers. The teams tied an NL record with 11 combined homers.

Fresh off scoring 33 runs in a three-game sweep at Colorado, the Mets slugged their way back from a 7-2 deficit after Jacob deGrom's shortest career outing.

More from FoxSports

The 2014 NL Rookie of the Year lasted just 2 2-3 innings and allowed a career-high seven runs on eight hits. His ERA rose from 1.98 to 2.29.Sean Gilmartin (3-1) had four strikeouts in 3 1-3 scoreless innings to earn the win.

Ryan Howard and Domonic Brown hit three-run homers and Cameron Rupp also took deGrom deep. But the Mets chased starter Adam Morgan and rallied off Hector Neris (2-1).

CUBS 2, INDIANS 1

CHICAGO (AP) - Kris Bryant homered with two outs in the ninth inning to lift the surging Cubs to a victory over the Indians in a makeup of a rained out game from June 15.

The rookie, who had homered twice Sunday, lined a pitch from Cleveland reliever Zach McAllister (3-4) into the right field bleachers to give Chicago its fifth straight win and 21st victory in 26 games.

Carlos Santana singled home pinch runner Abraham Almonte with the tying run with two out in the ninth to spoil Jon Lester's bid for his first shutout and complete game with the Cubs.

Backed by four double-plays, Lester rebounded from his shortest start of the season to pitch his longest since joining the Cubs. He was relieved by Hector Rondon (5-2) with two outs in the ninth after scattering six hits and striking out six.

Anthony Rizzo's triple in the seventh drove in Chris Coghlan - who had doubled for only Chicago's second hit - to break a scoreless tie in a pitching duel between Lester and Indians ace Corey Kluber.

YANKEES 1, ASTROS 0

NEW YORK (AP) - Carlos Beltran hit a game-ending sacrifice fly after Oliver Perez walked the bases loaded, and the Yankees beat the Astros in a game highlighted by a tense duel between Nathan Eovaldi and Scott Feldman.

Perez (0-1) entered in the ninth and gave New York fans a reminder of his wild five seasons with the Mets. He walked Brett Gardner, threw a wild pitch, then walked Alex Rodriguez intentionally. Brian McCann walked to load them and end Perez's night.

Beltran then gave Chad Qualls' first pitch a ride to deep center field for New York's third walk-off win this year.

Andrew Miller (2-2) pitched the ninth in helping the Yankees hand the AL West leaders their 18th road loss in their last 22 away games. The Astros were coming off a sweep of the Los Angeles Dodgers at Minute Maid Park.

Eovaldi and Feldman each went eight innings.

REDS 12, TIGERS 5

CINCINNATI (AP) - Brandon Phillips drove in four runs with a home run and a triple during Cincinnati's 10-run sixth inning and the Reds came back from a five-run deficit to snap a nine-game losing streak and beat the Tigers.

In the makeup of a game postponed on June 18 by rain, former Detroit shortstop Eugenio Suarez homered and doubled during Cincinnati's biggest inning since scoring 10 runs against Arizona in August 2005. Fourteen Reds batted in the inning against four Detroit pitchers, including reliever Al Alburquerque (3-1), who allowed three runs while not retiring any of the three batters he faced.

Collin Balester (1-0) pitched two scoreless innings for the win.

ROYALS 8, ORIOLES 3

KANSAS CITY, Mo. (AP) - Omar Infante led a seven-run charge in the sixth inning to support a strong start by Kris Medlen, helping the Royals beat the Orioles.

Despite working on a pitch count, Medlen (2-0) lasted six innings in his first start since Sept. 27, 2013, with Atlanta. The right-hander allowed five hits - one of them a two-run homer by Adam Jones in the first inning - while striking out six without a walk.

Medlen, who returned last month after his second Tommy John surgery, made seven appearances out of the Kansas City bullpen before replacing Jeremy Guthrie in the starting rotation.

Infante followed a tying, two-run homer by Mike Moustakas in the sixth with a two-run triple, then scampered home when the throw to third base skittered away. Lorenzo Cain drove in two more later in the inning, spoiling what had been a promising start by Ubaldo Jimenez (9-8).

BRAVES 5, ROCKIES 3

ATLANTA (AP) - Jonny Gomes drove in three runs with two hits, including a two-run homer in the first, and the Braves beat the Rockies to end their seven-game losing streak.

Adonis Garcia snapped a 2-2 tie with a homer off Jorge De La Rosa (7-6) in the fourth. Gomes' fifth-inning single drove in Cameron Maybin, who doubled.

The losing streak was Atlanta's longest of the season. The Rockies have lost four straight.

Colorado's Charlie Blackmon and Ben Paulsen hit homers in the first and second innings, respectively. Julio Teheran (9-6) was strong after that as he allowed three runs on four hits in 7 1-3 innings.

Rockies right fielder Carlos Gonzalez left the game in the fifth with soreness in his right knee. His status is day to day.

PIRATES 5, MARLINS 2

MIAMI (AP) - J.A. Happ pitched six scoreless innings, extending a streak of strong starts for the Pirates in a win over the Marlins.

Pittsburgh starters have thrown 19 1-3 consecutive scoreless innings, and Happ (2-1) has allowed one earned run in his past 17 1-3 innings.

The Pirates won for the sixth time in seven games to climb a season-high 27 games above .500. They have won five consecutive road games since Aug. 13, and they're 4-0 this year against Miami.

Tom Koehler (8-12) allowed two runs in six innings. He lost his sixth start in a row, and against the Pirates he fell to 0-4 in four career starts.

Gregory Polanco had a season-high four hits and drove in a run. Andrew McCutchen hit a two-out, two-run double in the third, and Neil Walker contributed a sacrifice fly in the seventh.

RED SOX 5, WHITE SOX 4

CHICAGO (AP) - Rusney Castillo homered and drove in a career-high five runs, and Joe Kelly won his fifth straight outing as Boston beat Chicago.

Kelly (7-6) allowed five hits and two runs over 7 1-3 innings. He became the first Red Sox pitcher since Clay Buchholz in 2013 to win five straight starts.

Jean Machi pitched the ninth for his second save.

Castillo went 3 for 4 and finished a triple shy of the cycle. His sixth-inning double drove in two runs and extended Boston's lead to 5-1.

Jeff Samardzija (8-10) dropped a career-worst fifth straight decision. Jose Abreu hit his 24th homer.

CARDINALS 5, DIAMONDBACKS 3

PHOENIX (AP) - Lance Lynn pitched six effective innings with the help of four double plays, and Yadier Molina hit a two-run single in the seventh to lift St. Louis over Arizona.

Lynn (10-8) allowed two runs on nine hits and induced three straight inning-ending double plays, including with the bases loaded in the fourth and fifth. Trevor Rosenthal gave up a run-scoring single to David Peralta in the ninth before closing out his 39th save.

Matt Carpenter hit a solo homer off Jhoulys Chacin (0-1), and the Cardinals broke open a tie game with a three-run seventh. They have won 10 of their last 11 against Arizona.

Welington Castillo homered for Arizona but flied out with the bases loaded to end the seventh. The Diamondbacks had 14 hits but left 11 runners on base to end a four-game winning streak.

ATHLETICS 11, MARINERS 5

SEATTLE (AP) - Danny Valencia homered and Stephen Vogt doubled twice in a seven-run fifth inning as Oakland climbed out of a big hole against Seattle starter Hisashi Iwakuma.

Josh Reddick also went deep and drove in three runs for the A's, who rallied after starter Felix Doubront exited early with a bruised foot.

Oakland trailed 5-0 after Iwakuma (5-3) allowed just one single through four innings. Vogt got the outburst started with a leadoff double. Two outs later, Billy Burns and Mark Canha connected on consecutive two-run doubles to make it 5-4.

Reddick tied it with an infield single and Valencia hit his 12th home run, bouncing it off the top of the left-center wall.

Edward Mujica (3-4) threw two hitless innings, and A's relievers retired their final 16 batters.

Franklin Gutierrez and Mark Trumbo homered for the Mariners.