My shut down completely no lights will not start..What could it be??. on 1998 BMW 328is

My brakes lights were out and right signal and fog light work sometimes..

2 answers
it sounds like an alernator problem but I will need to know more info
ck battery then if good ck charging system