6th episode of the first season of Star Trek: The Original Series
composer: Fred Steiner
director: Harvey Hart
screenwriter: Stephen Kandel
Wikipedia