throttle positioning sensor going bad can cause to work spuratic, and if it went out completely it would stop working, however it could be a fuse issue intermitten when loose, which would eventually blow the fuse and make it stop working, also the speed sensors at the front wheels, or the vss in transfer case on 4x4 or vss at transmission on 2 wheel drive.