Sounds like a vacuum line fell off or is cracked.
I* replaced a transmission when I* was 18...only
to find the new one did the same thing.
(stayed in first, and went limp when I* got off the gas)
It was a cracked vacuum line.
*never the smartest kid on the block