Could be TPS or transmission control unit , also could have bad transmission solenoids (you can ohm them out to see if they are bad ) . Obviously there is a slew of other issues that it could be ,but being that it has happened to me before that's where I Would look first .