2005 Chevrolet Malibu Maxx shakes and jerks in drive

while in drive car RPM’s act erratically and car won’t move and shakes and jerks.

Is the check engine light on? Your transmission could be going out, you could also have fuel system or other problems. How many miles on the vehicle? What’s its maintenance history?