2005 Dodge Durango wont start

2005 Dodge Durango

My truck wont start

My truck wont start now but the problem before it stopped was I couldn’t stomp on the gas. It would just stay the same speed and rpm and rev or it would decrease speed it also would randomly kinda jump or rug for min like it would shut off and when it stopped working i was going 60 and it just wouldn’t do anything but decrease speed then shut off got started one more time and wouldn’t let me get over 30 now wont start any ideas