The Yankees have found different ways to win games seemingly every day this season.

So when Vernon Wells stepped up to the plate with two on and two out in the bottom of the ninth, it looked as if it could be his turn.

“Those are the moments you love to be in,” Wells said after striking out to end the Yankees’ 5-4 loss to the Athletics in The Bronx. “It was shaping up to be one of those memorable Yankee Stadium moments and I didn’t come through that time. I’ll have to wait for next time.”

Wells’ confidence came not just from the unexpected success the Yankees have had this season, but also from the fact he had faced Oakland closer Grant Balfour a dozen times in his career prior to yesterday and had six hits — including two homers.

Yesterday, though, Wells couldn’t catch up to a Balfour fastball and the Yankees finished their long homestand 7-3.

After rallying from a 4-1 hole with three runs in the sixth, they fell behind again in the eighth when Boone Logan (2-2) gave up a solo homer to Josh Donaldson.

With two outs in the ninth, Brett Gardner singled and advanced to second on a wild pitch by Balfour. The A’s decided to walk Robinson Cano to get to Wells.

“I was standing on second base thinking, ‘On the wild pitch, maybe I should have just stayed at first and then they might have pitched to Cano,’ ” Gardner said. “But Wells has been great for us lately.”

The same cannot be said of Andy Pettitte, who lasted just five innings and gave up four runs. The lefty had said his cutter “abandoned” him in his previous outing, when he was roughed up for seven runs over 4 1/3 and he lacked command again yesterday.