02 Mazda 626 automatic tachometer rockets to 4000 rpms at first few gears engine light has come off and on what gives?

You need to have the code read. Go to Autozone and they will read it for free. If I had to guess I would say that your VSS sensor is either giving out or the Pcm is getting bad info from another sensor.