My 95 Accord did the same, i went to honda and they told me that my tranny ecu was not working well, because the speedsensor was dead for a few months, and in the end, since i "did not fix those things quickly" i have to change the tranny to a new/ fixed one.
and i think thats one of the 2...