The Paradise Syndrome

Spock and the Enterprise crew race to destroy an asteroid threatening a primitive world where an amnesiac Kirk is proclaimed a god by its indigenous people.