5.9 Magnum help needed

chased a starting problem on a dakota for weeks...it was the pick up coil inside the distributor..I thought it was the cam sensor....