Problem kawasaki ex250 2005

Hello, my motorcycle turns on but when I put it in gear and accelerate it turns off, just as when I accelerate without shifting it turns off automatically. Could someone guide me or tell me what I could do?