1997 Ford Ranger EVTM is the book you want
Like this one:
https://www.ebay.com/itm/354003689170
Ford sends these out as one book in the shop manual set of 3 or 4 books, for EVERY MODEL, EVERY YEAR, includes sub-models(XL, XLT, ect..) and all options,(2wd, 4x4, AC, fog lights, ect...) as well
Its so the Ford shop techs can work on that one vehicle model
Has every wire and connector and location
Ford re-named them "wiring diagrams" instead of EVTM in 1999/2000 or so, not that that matters to you, lol
And they are basically FREE, or almost, because when you don't needed it someone else will, i.e. the guy you buy it from probably sold his 1997 Ranger so no longer needs it, so he is selling it for what he paid for it