"And again, just a team victory," Tampa Bay manager Joe Maddon said.
|More on Yankees-Rays|
|More MLB coverage|
Matt Moore (5-5) allowed three runs while scattering nine hits over seven innings to win his fourth straight decision. The Rays stopped a two-game losing streak that had dropped them a season-high 7 1/2 games behind the first-place Yankees in the AL East.
"The Yankees came in here at the top of the division and we've been hitting a little skid," Moore said. "Hopefully this is a sign for a lot of good things to come."
Tampa Bay has won the last eight games between the teams in Florida, including a season-opening three-game sweep.
Teixeira then misplayed Elliot Johnson's sharp grounder over first base for his first error in 671 chances this year, enabling Conrad to score the go-ahead run. Teixeira shook his head after the ball scooted under his glove, allowing Johnson to reach third.
"I tried to look, but it was one of those after it goes by you, you go what just happened?" Teixeira said. "I didn't even get leather on it. Usually you can knock it down. I tried to look at video, but I couldn't really even tell what happened. I just missed it. I don't know if it hit the back of the base or the chalk or what. I still have to knock it down. That's the disappointing thing."
Garcia made four starts before being moved into the bullpen after allowing six runs in 1 2/3 innings of a 7-5 loss to Detroit. The right-hander returned to the rotation to fill in for Pettitte, who was placed on the 60-day disabled list after he fractured a bone in his left leg when he was hit by a batted ball against Cleveland on June 27.
New York scored twice in the first with help from Hideki Matsui, the former Yankees star who overran Teixeira's routine fly to right field that dropped for an RBI double. Alex Rodriguez singled, sending Teixeira to third before Cano lined a single up the middle to stake Garcia to a quick 2-0 lead.
Moore escaped further damage by getting Nick Swisher to hit into an inning-ending double play.
Upton's sixth homer of the season trimmed New York's lead to 2-1, and Pena's second in three nights made it 2-all.
Yankees manager Joe Girardi said before the game that Garcia, who had made 10 appearances out of the bullpen since being removed from the rotation, would be limited to 75 pitches. Pena, who is 5 for 42 lifetime against the right-hander, homered on Garcia's 74th -- and last -- pitch.
Garcia allowed two runs and five hits in 5 1-3 innings.
- Matsui left in the second inning due to left hamstring tightness.
- New York RHP Joba Chamberlain is progressing toward pitching in a minor league game for the first time since dislocating his right ankle bouncing on a trampoline in March. The reliever threw a pair of 20-pitch segments Monday during a batting practice session at the team's minor league complex in Tampa. He said he's scheduled to throw a simulated game on Friday.
- Sabathia, who strained his left groin on July 24, felt good after he resumed throwing Monday.
- Rays RHP Jeremy Hellickson , who left his most recent start after being hit in the right shin by a line drive off the bat of Prince Fielder , threw a bullpen session and expects to make his next scheduled start on Thursday at Cleveland.
- Yankees RHP David Aarsdma is undergoing tests after feeling discomfort in his surgically repaired right elbow. The reliever pitched in three Gulf Coast League games before being shut down.