AP Sports Writer
PHOENIX (AP) -- The Milwaukee Brewers had Arizona's Wade Miley in trouble, hitting a pair of homers the first three innings and several other hard-hit balls.
Then, almost nothing.
Failing to take advantage of their early lead, Milwaukee had two hits after the third inning and Jim Henderson gave up a 2-run single to Martin Prado in the eighth inning, sending the Brewers to a 5-3 loss to the Diamondbacks Thursday night.
"We did have a chance to get him early," Brewers manager Ron Roenicke said. "What it really comes down to his they got a big hit and we didn't. We had a couple of chances and we didn't get big hits."
Milwaukee jumped out to a 3-0 lead on Jonathan Lucroy's two-run homer and a solo shot by Carlos Gomez.
The Brewers struggled after that against the left-hander, who retired 13 straight batters and helped hold them to 1-for-7 with runners in scoring position.
Milwaukee starter Yovani Gallardo looked good early, too, holding the Diamondbacks hitless until Paul Goldschmidt's one-out single in the fourth inning.
He wasn't nearly as sharp as the game went deeper, though, allowing Arizona to claw its way back.
Adam Eaton helped Arizona close to 3-2 with a two-run triple in the fifth inning, Jason Kubel tied it with a sacrifice fly the next inning and Prado capped the comeback with the bases loaded against Henderson (3-3) in the eighth.
"We need to go down with him and the ball was left up," Henderson said. "He was aggressive and was taking advantage of the opportunity with the bases loaded, picking the pitch up and he got it."
The Diamondbacks were a bit thin on pitchers for the series opener after using eight in Wednesday night's 7-5, 14-inning loss to the Dodgers. They also figured to be a bit tired following the five-hour game that ended after midnight.
Miley (6-7) didn't look like he'd be much help, giving up a pair of homers in the first three innings.
After those early mistakes, he settled into a rhythm and so did the Diamondbacks' offense after struggling early against Brewers starter Yovani Gallardo
Brad Ziegler worked around two baserunners in the ninth to earn his second save, a night after Heath Bell blew a save with two outs in the ninth in the loss to the Dodgers.
"Everybody knows what happened last night and I was just trying to go as deep as possible," Miley said. "I was fortunate that I started feeling better at the game went along, got into a better rhythm and get through eight."
Gallardo has dominated the Diamondbacks during his career, going 6-0 with a 1.62 ERA in eight career starts before Thursday.
He was sharp early against Arizona again, getting the Diamondbacks to pound balls into the ground through the first four innings.
The Diamondbacks strung together a couple of hits in the fifth inning and Eaton, playing his third game since coming off the DL, reached down for a two-run triple for his first hit of the season.
Kubel tied it with a sacrifice fly off Gallardo in the sixth inning.
Gallardo allowed three runs and four hits in six innings.
"I got into trouble on my own," Gallardo said. "I tried to do too much and tried to make the perfect pitch and get out of it then the next thing you know the ball is up instead of trusting my stuff. Trust what I was doing in the earlier innings."
NOTES: Brewers LF Ryan Braun, who was expected to return to the lineup after missing a game with a sore thumb, will be out at least three games on bereavement leave. The Brewers said he left the team to attend to a family medical issue. ... Arizona 2B Aaron Hill was 0 for 4, the first time in 13 career games against Milwaukee he's failed to get a hit. ... Arizona LHP Patrick Corbin will make his first start since being named to the NL All-Star team in the second game of the series Friday night. He is the fourth Diamondbacks pitcher to win 10 games before the All-Star break, first since Brandon Webb went 13-4 in 2008. ... Brewers LHP Tom Gorzelanny will start against Arizona on his 31st birthday. He allowed two runs in six innings of a 2-1 loss to the Mets on Sunday.
Copyright 2013 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.