PHOENIX -- The Arizona offense finally came alive, and Jake Lamb led the way.
The young third baseman broke open the game with a three-run home run and the Diamondbacks snapped a five-game losing streak with a 12-2 rout of the New York Yankees on Monday night.
Lamb was a triple shy of the cycle, and Arizona had 15 hits after scoring just six runs in losing four straight at home to San Francisco.
"People say it a lot but I think that hitting is a little contagious," Lamb said. "Just to get a game like this, it's kind of like you can take a deep breath and go, `OK, we can hit."
Robbie Ray (2-2) allowed two runs on six hits in seven innings, his longest outing of the season, and got his first career RBI.
"That's as good as I've ever seen him," Arizona manager Chip Hale said, "in the strike zone, going after guys. He was using his breaking ball, his changeup, but he was really beating them with his fastball. I could hear him grunting out there."
Jacoby Ellsbury tripled and scored for the Yankees, who began a seven-game trip after a 7-3 homestand.
"There is never a good time to have a game like this," Yankees manager Joe Girardi said. "I wasn't sure what we were going to get from Greenie. I thought he did a decent job."
Green went four innings plus two batters, giving up six runs -- four earned -- on eight hits.
"It was an awesome experience but I left some balls up in the zone and they did some damage with it," he said. "Overall I made a couple of mistakes I am not happy with. It was OK."
First baseman Mark Teixeira dropped the throw from Green on Michael Bourn's bunt for an error that began Arizona's five-run fifth. Goldschmidt walked and, in an eight-pitch at-bat, Lamb hit one over the swimming pool beyond the right field fence for his fifth homer of the season.
"Especially in that situation, a guy on second, I was trying to get a base hit," Lamb said. "Just because we've been struggling a little bit, you don't want to do too much in that situation. I got the barrel on it and the ball flew."
New York tied it 2-2 when Ellsbury tripled to start the fifth and scored when shortstop Nick Ahmed's relay throw careened off Ellsbury's helmet and into the stands.
The Yankees scored a run on three straight hits to start the fourth and could have had more but Bourn, who joined the Diamondbacks on Sunday, made a leaping grab of Aaron Hicks' drive at the wall in center. The inning ended when Green struck out with the bases loaded.
Green never batted in his minor league career.
Joe Garagiola, who spent the later years of his outstanding career broadcasting Diamondbacks games, was honored in a pre-game ceremony. Garagiola died in March.
Joe Torre, MLB chief baseball operations and a Hall of Fame manager, was on hand to take part of the ceremony.
Joe Garagiola Jr., a top MLB executive, also spoke.
"I miss my dad. I miss him a lot. I know you miss him a lot," he said, "but please don't be sad tonight. Be joyful, be happy. He lived 90 amazing years and, to use a baseball expression, he did not get cheated out of one at-bat, not one."
A plaque honoring Garagiola was unveiled above the Chase Field seats in left field.
Yankees: Alex Rodriguez (strained right hamstring) took batting practice. Manager Joe Girardi said he expects Rodriguez to be activated Thursday, when he is eligible to come off the DL. Girardi also said LHP CC Sabathia (left groin strain) would come off the DL to start Friday night's game in Oakland.
Diamondbacks: RHP Josh Collmenter (right shoulder inflammation) will make his fourth rehab start with Triple-A Reno on Tuesday.
Yankees: RHP Michael Pineda (1-4, 6.28 ERA), pitching with an extra day's rest, makes his first start against the Diamondbacks. Pineda is 2-0 and has not allowed an earned run in three career starts in NL ballparks.
Diamondbacks: RHP Zack Greinke (3-3, 5.26) makes his first start against the Yankees since July 30, 2013. He is 2-4 in his career against New York and last beat the Yankees on April 9, 2008.
World Series 2021 -- Best moments, action and more from Game 2 between Braves and Astros
The Astros' offense, led by Jose Altuve and Jose Siri, paired with a seven-strikeout night for Jose Urquidy have Houston in control of Game 2.
World Series Game 1 viewership up 17.5% over last year's low
Atlanta's 6-2 victory over Houston in Game 1 of the World Series drew an average of 10,811,000 viewers, up 17.5% from last year's record low.
Padres hire Ruben Niebla as pitching coach before landing manager
he San Diego Padres have hired Ruben Niebla from Cleveland as their pitching coach.
Atlanta Braves fill Charlie Morton's roster spot with Tucker Davidson
Tucker Davidson, who had a 3.60 ERA in four starts this season with the Braves, has been added to the team's World Series roster in place of injured pitcher Charlie Morton.
Roller derby team sues Cleveland Guardians to stop name use
A roller derby team that has called itself the Cleveland Guardians since 2013 is suing the city's Major League Baseball team for trademark infringement.
Nelson Cruz wins MLB's Roberto Clemente Award for philanthropy
Nelson Cruz, who was nominated by the Twins before being traded to the Rays, is the 50th winner of the Roberto Clemente Award. The veteran slugger provided financial support for 1,200 families in the Dominican Republic during the pandemic.