2000 chevy 1500 5.3 v8

My truck miss fires and stalls after warm up . The rpms go up on it’s own trying to stay alive but stalls the temp. gauge goes up and down after warm. I’ve changed the thermostat cleaned MAF and throttle body still having the issue. Also when I throw into gear it stalls immediately.