Most, if not all vehicles built today must go through a "drive cycle". After the battery is disconnected or ECU(computer) is reset. There are certain procedures that must be followed after a reset, some can take 40 minutes to properly attain after repairing or replacing parts. Thats part of the importance of having the proper information when working on or repairing todays vehicles.
BTW, what was wrong with the vehicle?