Sounds like you have a possible couple issues. We need to start with checking for codes as I suspect you have throttle position sensor issue.
https://www.2carpros.com/articles/checking-a-service-engine-soon-or-check-engine-light-on-or-flashing
The fact that it doesn't go over 30 MPH with the pedal unhooked, it not surprising as you are in de-rate mode or limp mode because of this being unhooked.
https://www.2carpros.com/articles/reduced-power-limp-mode
When the pedal is hooked up and you have little to no response is due to a sensor issue.
However, if the pedal is loose and wiggles then that is an issue as well that we need to address.
Let's start with codes and we can go from there. Thanks
SPONSORED LINKS
Thursday, October 7th, 2021 AT 4:50 PM