My car has a good battery and cranks over and tries to turn on but turns off. Problem started Friday. Also things that got affected, fog lights don't turn on and all the dash board don't turn on and windows don't lower at all and when I put the key in the ignition and turn in to the contact position does not make that contact noise that turn on all lights on dash but if I try to turn it on all the car dash light on but then everything turns off. But radio turn on and all light in the car turn on.
Sounds like a weak battery to me. Do your headlights turns on bright & does the horn sound meek?
Load test the battery & alternator.
Does the car start instantly when you jump start the car?
Also, watch Scotty’s video on how to fix a car that cranks but won’t start.
You MAY have some more complex electrical problems, but here's Scotty on Crank/No Start
https://www.youtube.com/watch?v=064Ilsz8Fzg