The most likely component you're looking for is the inertia switch. This switch cuts power to the fuel pump in the event of a collision. It's typically located under the passenger side of the dash, often near the floorboard. It's usually a small, square or rectangular box, sometimes with a button that needs to be pressed to reset it after it's tripped.
Important Note: If you suspect a fuel delivery problem, don't just focus on the inertia switch. A malfunctioning fuel pump, a bad relay, or a problem with the PCM could all cause fuel-related issues. It's best to consult a repair manual specific to your 2002 Grand Am or take it to a qualified mechanic for diagnosis. Improperly handling fuel system components can be dangerous.