Matt Holliday had an RBI single in the seventh inning of the Yankees’ 9-5 win over the Reds on Wednesday at the Stadium as he tries to snap out of the slump he has been in since returning from a viral infection.

The DH, who went 1-for-5, is in a 7-for-53 funk, with a homer, a double, three RBIs, two walks and 15 strikeouts.

“It’s frustrating,” Holliday said. “I’d like to start driving the ball more.”

“I think he feels better,” manager Joe Girardi said. “You start to see some signs of him coming out of it … [but] there’s always concern when you have older players — and he’s been under the weather.”

Ronald Torreyes started at second in place of the injured Starlin Castro (hamstring), with Girardi not wanting to keep the utility infielder out of the lineup too long.

Torreyes wound up scoring the Yankees’ first two runs after reaching on a pair of singles.

Girardi said he would continue to platoon Torreyes and Tyler Wade in Castro’s absence, but he also wanted to “keep Torreyes going. He’s been very productive for us.”

Gary Sanchez, who didn’t play on Tuesday and had just two hits in his previous 20 at-bats — and no RBIs, drove in a run with a double to left in the seventh Wednesday.

Jacoby Ellsbury started for the first time since last Thursday and went 0-for-4. He’s now hitless in his last 14 at-bats and was booed as he left the field after he hit into a double play in the third.

David Robertson threw a scoreless ninth in his first outing as a Yankee at Yankee Stadium since Sept. 25, 2014.