Scooter 50cc 4t problem

Hey guys, hope you're having a good day so far. I'm not really good with mechanical stuff so I thought to ask here. I have this Kymco Agility 50cc, still new (I've riden about 650km with it). I haven't riden with it or even started it since last week so today I turned it on to warm up the engine a bit. I didn't ride it, I just turned the engine on, everything went fine for about a minute and then it suddenly stopped by itself. I re-started it again and waited another minute and this time it didn't turn off. So my question is, what's wrong here? Everything is brand new (I did change my engine oil months ago) so is it because it has been sitting there turned off for a week? Is it something else? I'm a bit afraid that it would stop working because I have this exam on Monday and I need the scooter to go to the faculty. Thanks for your help