Star Trek: The Cage

Capt. Pike is held prisoner and tested by aliens who have the power to project incredibly lifelike illusions.