Problems with my Foreman 500

I have a 2014 Foreman 500, it’s snowing here in NC and I was out riding around and then the motor started making a weird ticking noise then 20 min later on my ride back the fourwheeler shut off my screen and light all stayed on but the motor shut off and wouldn’t start what could be the problem.