Did you replace the brake pads before finding these ABS & Check Engine lights?
If so I would guess you might have accidentally damaged an ABS sensor/sensor cable when replacing pads.
You could start by checking the front and rear wheel ABS sensors are ok condition visually, that their cables are not damaged also.
Check that the front ABS disc (left side of wheel) and rear ABS disc are there and clean (left side of rear wheel).
In the mean time order a Lonelec cable and download TuneECU, you can then plug laptop into bike and read what fault codes are thrown, this time and any future occurrences
(you can also get TuneECU in an Android app, and a bluetooth plug if you prefer)