Babes in Toyland (1961 movie)
Tom and the sheep are taken by Gonzorgo and Roderigo, but they sell Tom to gypsies instead of killing him. Tom  escapes from the gypsies and goes with Mary, Bo-Peep, and other Mother Goose characters to Toyland.