Five Characters in Search of an Exit - 12/22/61

Five characters trapped in a circular room with a high open ceiling, cannot figure out where they are or how to get out. One of them escapes only to be returned. It's revealed that they're unwanted dolls in a charity barrel.

William Windom
Susan Harrison
Murray Matheson
Written by Rod Serling