A bad battery could cause stalling if it's really bad. When your battery isn't providing enough power to keep the engine running, it can cause all sorts of problems - including stalling. If you're having trouble starting your car or it's been stalling more often than usual, it's definitely worth getting your battery checked out.