Most likely messing about testing the motor and fitting a new switch has dislodged a wire. I have a WM280 which may be similar inside.
First, as suggested by others, check and clean the sensor (silver object with red led and black wire) mounted on the change-gear end of the spindle:

Your sensor may look different, but the wire is a giveaway. Note where the wire enters the headstock in case cleaning grease / swarf, doesn't fix the problem. The sensor is actuated by a small block magnet stuck to the splndle, at least one, maybe 2. It's unlikely but make sure the magnet hasn't fallen off.
Behind the front panel you should find the tachometer power supply, on mine it's part of the mains filter, green board mounted on the floor of the headstock.

As the display is working, the problem is unlikely to be due to a power supply problem. Note however the large black cable bundled together and plugged into the rear of the tachometer/display mounted on the aluminium front panel (bottom right of photo): this is the sensor input. Make sure it's plugged in properly.
Another view of the tachometer board, on mine the red/black pair are low voltage DC power, and the green/white pair are the sensor input.

The wiring of my lathe isn't arranged as a tight loom fixed firmly inside the headstock, rather the various parts are wired point to point and tidied up by gathering with a few nylon cable ties. This simple arrangement makes the lathe vulnerable to dislodged connections due to pulling on wires elsewhere on the machine, for example when your switch was investigated. In the worst case, a board could be damaged by pulling a plug hard in the wrong direction, but considerable force would be needed. It's all simple enough to replace if need be.
Hope that helps,
Dave
Edited By SillyOldDuffer on 17/05/2019 12:54:38