Jim Spencer hit a two-run homer and Oscar Gamble homered with the bases empty last night as the Yankees beat the Kansas City Royals, 6-5, in New York. Both managers were ejected during the game.

With Kansas City leading, 5-4, Graig Nettles led off the bottom of the fifth with a single. Spencer, batting only .115, hit a 3-2 pitch off reliever Renie Martin (0-1) off the facing of the upper deck in right.

The Yankees, trailing, 5-0, got a run in the third when Dave Winfield grounded into a double play, allowing Willie Randolph to score. They added three runs in the fifth on Gamble's leadoff homer, his sixth this year, Randolph's sacrifice fly and Winfield's bases-loaded walk.

The Royals scored three times in the second off starter Rudy May on John Wathan's two-run double and Dave Chalk's single. Kansas City got two runs in the third on Hal McRae's sacrifice fly and Wathan's single.

Doug Bird (3-0) relieved May in the third.

Kansas City Manager Jim Frey was ejected in the sixth while arguing with plate umpire Dale Ford over a strike call. Frey kicked dirt on Ford's shoe and home plate before hurling his hat into the air and kicking it into left field.

New York Manager Gene Michaels was ejected in the eighth while arguing a trap call that was overruled by third base umpire Joe Brinkman. The game was played under protest by Yankee Coach Yogi Berra, who claimed he spotted Frey hiding in the Kansas City dugout.