TAMPA , Fla . - Nick Johnson hit two home runs while working on his swing , CC Sabathia gave up five runs trying to refine his motion and the New York Yankees lost to the Pittsburgh Pirates 12-7 on Tuesday .