If it only revs to 5k there is a fault stored in the ECU. Read what that says.....
Also if it revs to 5k and doesn't stall you will have an AGG or AGU engine, the hall sender on them is only one of two that monitor rpm and engine position. You could also have a fault crankshaft sensor.
If you replace the dizzy you will need to adjust the ignition timing again, for that you need to put ECU into basic setting (so it does not alter ignition timing) and a strobe gun.