NEW YORK -- Jacoby Ellsbury's return from the disabled list gives the Yankees a deeper lineup. Still, manager Joe Girardi knows what really propels New York.
All-Star slugger Mark Teixeira homered twice after Scott Kazmir left his start with triceps tightness, and CC Sabathia won for the first time in a month when the Yankees held off the Oakland Athletics 5-4 Wednesday night.
"That's how we're going to win games, by hitting the ball out of the ballpark," Girardi said. "We're designed to do that here."
Stephen Drew, who entered as a late-game defensive replacement in a 1-for-24 slump, homered off Fernando Abad in the eighth inning to give New York a 5-2 lead. Andrew Miller, just off the disabled list as well, nearly gave it all back in his first appearance since June 9, allowing a two-run shot in the ninth to Marcus Semien -- a pitch Miller said he wanted to throw.
Stephen Vogt reached second on third baseman Gregorio Petit's two-out throwing error. But Petit charged Ben Zobrist's soft grounder and fired a quick throw to first for the final out, with Teixeira making a tough stretch. That gave Miller his 18th save in 18 chances.
"That was a heck of a play to finish the game. Especially after the play before, to be able to step up and do that is huge," Miller said. "That was a heck of a play on his and Tex's end."
Sabathia revealed he was pitching on eight days' rest because he had his knee drained after the team returned home from Anaheim, California. He said it was part of the plan since having surgery that cut short his season last year, and he felt really good with the rest.
Sabathia (4-8) recovered from two rocky innings to pitch into the sixth. He allowed two runs but struck out only one, the first time he fanned fewer than two since Aug. 7, 2013.
Kazmir left after the third inning with a 2-1 lead, having yielded an unearned run, but Evan Scribner needed just four pitches to give up the edge. Teixeira led off the fourth with a long ball and then opened the sixth with another, his 22nd of the season. Scribner (2-2) has allowed 11 home runs, most among major league relievers.
Kazmir thought his problem might've been caused by dehydration on a muggy evening.
"That's kind of what it felt like -- just a little bit of tightness, maybe like cramping or something like that," said Kazmir, who allowed two hits. "It definitely felt very minor and I wanted to go back out there and still pitch."
Dellin Betances bounced back with a perfect eighth after giving up a go-ahead homer to Brett Lawrie in the 10th inning of Tuesday night's loss. Betances slid back into the setup role with Miller's return.
"I wasn't real worried," Girardi said with a laugh.
Jose Pirela had a tiebreaking sacrifice fly for the Yankees, who improved to 2-4 against Oakland this season.
Girardi skipped Sabathia on Sunday. The former ace had given up 10 runs and 14 hits over his previous two starts and had not won since June 7. The time off didn't initially appear to have helped.
The A's made good contact against Sabathia in the first two innings, hitting sharp liners and scoring twice in the second on four hits.
Girardi got help up in the Yankees' bullpen, but Sabathia recovered and didn't yield another hit until the fifth. He was lifted with one out in the sixth following Smolinski's single. Called up Tuesday, it was the first hit for Smolinski with Oakland.
"I think it was just command of both sides of the plate," Sabathia said about what changed for him during the outing. "It feels good."
Sabathia allowed seven hits and two walks in 5 1/3 innings.
Yankees: Ellsbury went 1 for 4 during his first game in seven weeks and said he's preparing to play Thursday afternoon even though he hasn't been told if he will. ... 3B Chase Headley was held out because of a sore right calf. After the game, Headley said an MRI showed some inflammation. He'd be surprised if he played Thursday.
Several Yankees, including Alex Rodriguez and Girardi, donned bald caps in support of Brett Gardner, one of five candidates for the final AL All-Star spot. "(hash)Vote Gardy" was written on the caps. New York showed a "(hash)Votegardy" video before the fourth inning -- general manager Brian Cashman joined in. Gardner was in fourth place in voting that ends Friday.
Athletics: Jesse Chavez has struggled over his last six starts, posting a 5.00 ERA and a .297 opponents' batting average. But he's been really good against the Yankees throughout his career: 4-0 with a 1.63 ERA in five appearances, three starts.
Yankees: Masahiro Tanaka has not won in four starts, the longest drought of his brief major league career. After giving up a career-high three homers in two straight starts, the right-hander did not allow a long ball in his last outing.
Tom Brady catching Patrick Mahomes? Our lineup of NFL stars drafted by MLB
Our star-studded baseball team of NFL players includes six QBs, five former first-round NFL draft picks and two former MVPs.
What to make of the slow start to MLB's offseason
Jeff Passan examines what's to come this coming MLB offseason while comparing its slow nature to the fast paced NBA off season.
Tampa Bay Rays OF Randy Arozarena released in Mexico
Rays outfielder Randy Arozarena was released in Mexico's Yucatan state Thursday prior to a scheduled hearing after his former partner told a judge that she did not want to press charges.
Atlanta Braves' Charlie Morton has faint memories of previous stint with team
Charlie Morton, who returned to the Atlanta Braves on a one-year, $15 million deal, says he doesn't remember a lot from his brief stint with the team 12 years ago.
Cincinnati Reds, Colorado Rockies involved in four-player trade
The Rockies acquired right-hander Robert Stephenson and minor league outfielder Jameson Hannah from the Reds for right-handed pitchers Jeff Hoffman and Case Williams, a minor leaguer.
Free agent Adam Wainwright uncertain of his future with St. Louis Cardinals
Adam Wainwright, who has spent his entire 15-year MLB career with the Cardinals, is unsure of his future with the team entering free agency. "We just don't know what they're going to be offering -- or if they will offer," he said.