Marcus Thames hit a long homer then had the go-ahead RBI single in the ninth inning as the New York Yankees rallied from five runs down to beat the Texas Rangers 7-6 on Wednesday night for a split in the two-game series between the division leaders.