It might cover both, depending on your policy.
Some policies protect the car. If you have an accident and your car gets dinged—or worse—optional collision coverage will help pay to repair or replace it. Comprehensive insurance, which is another optional coverage, applies for non-crash-related hazards. So if a storm floods your car, a squirrel gnaws on your wiring, or loose bricks fall onto your hood, comprehensive coverage will help pay for the repairs. And liability coverage, which is required in most states, pays for the damage to another driver when you are responsible for an accident.
Other policies may help pay for medical costs if someone gets hurt in a crash. If another driver hits you, for example, their liability coverage may extend to your accident-related injuries. And depending on the state you live in, your health care provider can secure a lien for the full amount owed for bodily damages.