Replacing the speed sensor on my E 350 - 92 solved my shift problems, which was similar to your description. The job was done at a Ford workshop, after electronic diagnosing.
A friend later got the same problem, and solved it by taking out the sensor, cleaning the contact points and putting the sensor back.
The sensor isn`t an expensive part, but why replace if it can do some more work.