I bought an 03 Ranger for my daughter last year. Ran great for 6 months and since then has been one issue after another, plugs/wires, on my third fuel pump in fact in shop now for this issue, leaking back window repair, etc...
Wish I had got her a small fuel efficient car but she wanted a small truck.
Did you check the vehicle history, sounds like it’s been in a flood.