2003 Chevrolet Malibu won’t idle

I have a 2003 Chevy Malibu that would not idle. It revs up on it’s on. I have replaced the tps and the mass air sensor. When I replaced both sensors I reset the computer but the symptom is still there any suggestions?

What engine? How many miles in it? Is the check engine light on? What are the codes?

Did you replace the MAF and TPS as a guess to fix the problem or did you have other data that caused you to replace them?