My 325xi will turn over but will not start. I have changed the fuelpump/filter on 2002 BMW 325xi

I also replaced the fuel pump relay switch as well. Please help me I just bought this car.

Asked by for the 2002 BMW 325xi
Take to dealership and have them reset the ECU. I had the same problem BMW is designed for security reasons to stop fuel to getting to motor so it's about 110.00 for the dealer to fix it thanks. Matt -