I never heard of a YJ from 97 because that is the first year of the TJ but if you sure who am I too argue.
Also If it is a YJ you most certainly have an external fuel filter (unless someone replaced your fuel system with something completely after market.) it will be right above the front of your rear passenger tire on the frame. it will look like
Just follow your fuel lines and there it will be.
Anyway if that still fails (like mine did) It may be a break in your wiring. My jeep had a fault leading up to my fuel pump relay as well as one in the actual line leading to the pump.
I did a bit of hack job to fix the problem and ran a new ground and power line to my pump
As seen here: