check the big three.

is it getting fuel?
is it getting air?
is it getting spark?

it sounds like a spark or tps problem. im leaning towards TPS considering you had a code for it.