Starts at 1500rpm idles to 1100, dies randomly when stopping in intersection on 1990 Ford Bronco

When shifting it jerks the whole truck, especially to reverse, makes a huge clunking but still works. New engine, when slowing down below 10 mph it sometimes shifts to early or acts as if gas is not getting through, I give it gas and it barely goes but in a couple of seconds it gets the right gas flow and surges forward. Changed fuel filter, changed the battery, not sure what to do.

Asked by for the 1990 Ford Bronco