Uh boyee...... You state that your car STOPPED? What do you mean.....how did it stop? Was it as though someone put the brakes on without your knowledge? Do you mean the car stalled? Because in the next sentence you say that you shut off the engine.....so obviously it did NOT stall.....so I am rather confused about you saying that the car stopped.
"my car suddenly stopped with both the "check engine" light and "battery" light on, but the heat, headlights and radio were working just fine"...... This is a STRANGE thing to say.....I am sorry I dont quite grasp what it is that you are trying to relay to me.
When your Battery light came on... This is indicative of a charging system fault.....Usually an alternator issue.
The check engine light is alerting you to the fact that you now have an engine trouble code..... You need to read this code and tell us what the actual code is.....so that we can tell you what to do next
PLEASE elaborate for us regarding the first sentence.....I'm still confused Sir