Advance Auto Parts or Autozone will test the battery, alternator and starter for you for free in about five minutes to pinpoint the problem.
Is the battery going dead and not starting the car?
Never randomly replace parts hoping it will fix a problem, as this can get very expensive, end up with perfectly good parts in the trash can and your wallet being a lot lighter.
Always diagnose before doing anything.