Kansas City pinch hitter Jim Sundberg's bases-loaded drive in the bottom of the ninth inning yesterday bounced over the right field fence for a tie-breaking single and the Royals beat the New York Yankees for the first time in 11 tries dating to last season, 6-5.

Hal McRae walked to open the ninth off Dave Righetti (1-2) and Darryl Motley singled with one out. Frank White grounded to the mound and Righetti's throw to second pulled Willie Randolph off the bag. That put Royals on every base.

With the infield and outfield drawn in, Sundberg drove the ball over the head of Dave Winfield in right. His hit originally was scored as a ground-rule double for two RBI and a 7-5 final score, improper under baseball's rules.

Kansas City rallied from a 5-2 deficit to tie on single runs in the fifth, sixth and seventh innings, then Dan Quisenberry worked 1 1/3 innings of hitless relief to improve his record to 3-2.

A four-run fourth off Bret Saberhagen had given the Yankees their lead after the Royals went ahead, 2-1, in the third on a triple by Willie Wilson and Pat Sheridan's first home run of the year.

Three innings later, when Sheridan hit a slicing line drive in front of a lunging center fielder Rickey Henderson and the ball rolled to the wall, he had the first two-homer game of his career.