If the engine in your 1989 Dodge D150 Ram with a 5.2 liter engine is pinging under acceleration and the mileage is very poor what is wrong?

Check the timing first. Then check the egr ooperation. Then check the compression wet and dry. Run some engine cleaner through it.