What's going on??

I was gonna try to figure out why the negative wire going to my flasher burned . I turned the car on and it was idling for a good 5 minutes everything worked fine all lights and flashers/signal. After a couple of minutes I started to here a ticking noise coming from behind the dash around the ammeter area. As it idles it does a quick tick and the ammeter needle shoots down to D but then comes back quick and keeps idling .it did that maybe a good 10 times now when I try to crank it I get nothing no click or anything . All my lights work . .anyone have an idea what happened there?