When driving, sometimes when I want stop the vehicle, I go to press the brakes, but that time engine rpm goes high, keeping brakes pressed hard, after 5 second engine becomes normal. It goes high when rpm is more than 2000. I changed tps, air idle control valve, control valve of EVP, fuel pressure sensor, no leaks, detect no diagnostic codes on obd. Please what is the reason? Thank you.
This situation could be Transmission Flare. The engine control briefly ups the RPM to match the transmission downshifting, to prevent an abrupt downshift feel. If the control or sensing systems are out of whack, it can overdo the RPM adjustment.
Some of the items you replaced require adjustment or calibration. For example, the Idle Air Controller (a prime suspect here) requires some settings, just bolting it in might make the problem worse.