Published: Jul 03, 2012 3:19 AM EDT
Updated: Jul 03, 2012 6:31 AM EDT

ST. PETERSBURG, Fla. (AP) - B.J. Upton and Carlos Pena homered and the Tampa Bay Rays took advantage of Mark Teixeira's first error of the season to beat the New York Yankees 4-3 on Monday night.

Pinch hitter Brooks Conrad's RBI double with two outs in the seventh inning off David Robertson (0-3) made it 3-all. Teixeira followed by misplaying 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.

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.