97 legacy outback fuel system issue.
i have a 97 subaru legacy outback that just recently stalled out while driving. it seemed to not be getting fuel tho i had half a tank of gas. so after letting it sit for about 20 mins i gained access to the sending unit threw the trunk and tapped on the cover and the car would start but only run for a short time. so i replaced just the fuel pump and the fuel filter. the car ran for about a day then i got the same issue, car would die and after an hour or more i could tap on the cover of the sending unit and it would start. so i returned the pump and replaced it again... yet again its the same issue. im at a loss. the car when it runs it runs great. but it will only run for about an hour if im lucky.. any ideas? the car does have 300k miles on it but i dont wanna give up on it yet. it just took a inspection sticker and the garage told me they were blown away with the shape of the car for the miles. bums me out to see it sitting there for what could be a small issue.