2000 Starting problem

Just replaced fuel pump about a week ago, now the car is acting up again. Acted up twice today, but there are also times that you could cycle the key for as long as you want and you hear the fuel pump come on. Other than being a defective pump what else can it be? Thanks

Describe acting up?

cranks but does not start, sometimes you wait for two seconds and cycle the key you’ll hear the pump come on & starts right up.

Make mode and year of your Huppmobile?

2000 Oldsmobile Alero 3.4L