transmission on 1997 Acura TL

I bought a 1997 Acura 2.5 TL off craigslist and when the car is cold it would go into gear but when it warms up it will not move and the rpm gauges goes up and down could someone please tell me the problem.

Asked by for the 1997 Acura TL