Wiggle the plugs on top of the coil and on the two white resistors mounted just above the engine at the back of the compartment.
+
Also check the wire connector under the whiteish/yellowish cover below the resistor pack if you don't have spark. That connector seems occasionally to disconnect by itself (not visible though) and cause the same symptoms.
Welmoed
Black D 1981-11 sold
Toyota Prius III 2009-07 (sold)
Mazda MX-30 (BEV) 2020-09