Car will not respond to gas pedal depression except when in park
This morning when I left in my car the brake and
battery light was on so I stopped and turned it off
and restarted to see if the light would go off but it
didn't and when trying to restart it sputtered and
died but on the second time it started right up and
about a mile later I was stopped amd revved the
engine and the lights went off but the car was
driving fine. About 10 hours later the car started up
just fine but when I tried to back up giving gas did
nothing no rev no rpms nothing and same in drive
but in park it revs so i turned it off and then it
wouldn't start again it would turn over twice and
then the noise would stop so I pushed it back into
my parking spot and then it started right up first try
but still wouldnt accelerate. The car has driven
perfectly prior to today and has no other known
issues. It does havw 220k miles. Any help would be
appreciated!