The early ingredients were there for the Rockies on Friday night in Philadelphia, but the finishing touch was not.

Despite a three-run homer in the opening inning by Ryan McMahon, and despite another promising outing by rookie right-hander Noah Davis, the Rockies lost 4-3 to the Phillies in the second game of their series at Citizens Bank Park.

Colorado’s offense went silent after the first, as the Rockies managed just one hit over the final eight innings and manager Bud Black was ejected for the first time this year.

“We just didn’t hit much after the first inning,” Black told reporters after watching the majority of the game from the visiting clubhouse.

McMahon jump-started Colorado after singles by Kris Bryant and Charlie Blackmon set the table. It was McMahon’s fourth homer of the year, a 408-foot shot to center field.

“I was ready for (the fastball), and (Aaron Nola) put it in a good spot (up in the zone) where I could handle it,” McMahon told reporters. “I gave it a good ride.”

Pitching like he’s trying to earn a spot in the Rockies’ dismal rotation, Davis turned in a second straight strong impression. After throwing five shutout innings in his first major league start last weekend in Seattle, he followed that up with another consistent outing. The right-hander threw 4 2/3 innings, allowing two runs (one earned) and departing with a 3-2 lead. He struck out five with no walks and threw 14 first-pitch strikes.

“I was impressed by Noah and how he hung in there,” Black said. “He continued to make pitch after pitch and held the fort… That’s a good sign for Noah.”

When an error by McMahon at third base on the leadoff batter opened the door for the Phillies in the fourth, Davis could’ve caved, but didn’t by mitigating the damage and working around balking in a run.

“I can’t make that error there, because that’s where they got their momentum and that got them back in this game,” McMahon said. “We had all (the momentum) before that.”

Black was ejected in that inning when Phillies catcher J.T. Realmuto was awarded first on a hit by pitch on an 0-2 count. The Rockies already used a challenge earlier in the game, and Black got fired up with home plate umpire Alex Tosi, resulting in the skipper’s ejection.

Tosi didn’t initially make a call on the play, but Realmuto indicated it grazed him, and then Tosi awarded him first base. That incensed Black, who wore out Tosi for over a minute before finally getting the hook. It was Black’s 10th ejection as Rockies manager and 35th all-time.

“Usually when there’s a hit by pitch, the umpire emphatically signals for a hit by pitch,” Black said. “I was hoping they would gather and if it was something they could look at (without a challenge).”

Meanwhile, after McMahon’s opening-inning bomb, the Rockies’ offense went quiet. Nola didn’t give up a hit after the second inning and finished with three walks and three strikeouts in seven innings pitched. Colorado managed only one baserunner off the Phillies’ bullpen.

“Nola settled in, and he made pitches,” Black said.

In the bottom of the seventh, after Nola’s work was done, the Phillies got their ace off the hook for the loss via Kyle Schwarber’s solo homer to left off right-hander Dinelson Lamet that tied the game 3-3.

Philadelphia completed its comeback in the eighth, starting with Realmuto’s leadoff double off Brad Hand. After Realmuto stole third base, Edmundo Sosa’s sinking line drive single to left gave the home team a 4-3 lead.

On that play, Rockies left fielder Jurickson Profar initially went back a couple of steps, then veered forward into the gap and dove for the ball, which came off Sosa’s bat with sinking spin. But Profar couldn’t get his glove there in time, trapping the ball against the grass and allowing Realmuto to score.

Hard-throwing right-hander Jose Alvarado set the Rockies down in order in the ninth for the save, shattering McMahon’s bat on a weak line-out to finish it off. The Rockies (6-15) have lost nine of their last 10 games.