Star Trek VIII, First Contact is a science fiction film not set within the Solar System which was released in 1996 and is directed by Jonathan Frakes.
The Earth is under attack by the Borg and the Enterprise answers the distress call. Ordered to stay away but Captain Jean-Luc Picard disobeys by helping to destroy the Borg. However a spherical Borg ships escapes and enters a time warp back into the past. Enterprise follows and destroys the Sphere after it has caused some damage on the ground. The site of the Borg attack is Montana and time is April 4th, 2373. It is the day before Zefram Cochrane is to make his first flight in Phoenix, the first warp-speed spaceship. Riker and the team must help Zefram get back on track and succeed in flying the Phoenix. Picard deals with the Borg who has survived the destruction of their sphere. If they don't get the Phoenix into space, they won't make first contact with the Vulcans.