1998 Foreman 450 ES Electrical Problem

My ATV lost power as I was riding. I’ve checked all the fuses under the seat, the display screen works and I can change the gears when the key is switched to the on position. I am not getting fire to the spark plug. Pressing the ignition button the motor spins fine, just doesn’t hit due to lack of fire at the plug. Don’t know what to look for at this point. Could someone point me in the right direction?

Thanks,
G.