In the film, "Star Trek Generations," Data finally installs the emotion chip he retrieved from Lore (Star Trek: The Next Generation, "Descent, Part II," Season 7, Episode 1), and experiences the full scope of emotions. These emotions proved difficult to control and Data struggled to manage them. By the events of "Star Trek: First Contact," Data gained complete control of the chip, which included deactivating it to maintain his performance efficiency.
Star Trek: First Contact (1996) Captain Picard and his crew pursue the Borg back in time to stop them from preventing Earth's first contact with an alien species. They also make sure that Zefram Cochrane makes his famous maiden flight at warp speed.