Hello, wondering if there's some kind of electronic transmission issue or even a mechanical one. Hands on testing will be needed to figure it out. Seek guidance at a repair shop near you:
www.repairpal.com/repair-shops
RepairPal Certified shops can diagnose and repair your 1998 Dodge Ram 1500. They provide transparent pricing with a minimum 12-month or 12,000-mile warranty on repairs and services.