Bell, Book and Candle
The movie stars Kim Novak as a witch who casts a spell on her neighbor, played by James Stewart.  Also appearing are Jack Lemmon, Ernie Kovacs, Hermione Gingold and Elsa Lanchester. Ernie Kovaks plays a very confused character, because he is commanded to appear by magic and has no idea where he is or why.