Lights work, turn the key and it just goes click,
click, click. Wont start without a jump
Or ignition switch
It's a dead or dying battery; you might have enough juice to light the lights, but not enough to turn the starter motor. Jump start the car properly; leave donor hooked up long enough to charge your battery, at least ten minutes. If your car starts, fine. If it does not start, replace your battery. After either of these, go to an auto parts store and have any codes read. They may point you to the reason your battery died.