In first film Willie Wonka & The Chocolate Factory (the one with Gene Wilder), based on a Roald Dahl story. The song is not in Tim Burton's film remake Charlie & The Chocolate Factory (with Johnny Depp).
Sammy had another big hit with Bricusse/Newley-composition What Kind Of Fool Am I? from musical Stop The World, I Want To Get Off, originally by Anthony Newley himself. (see also: Who Can I Turn To? and Pure Inspiration)