Not certain what year Ranger we are discussing, but the possibility exists that it may be a replaceable part. If it were my vehicle, and I intended to keep it for awhile, and I wanted to not touch that part again, I would opt for new and be done. Otherwise, I would find a boneyard unit, clean it and go through it. If you are not making roughly 13.8 volts at 1000rpm, then the Alternator is likely the issue.