What if you were in a car accident that was not your fault though you did not have insurance but the vehicle is insured?

If you are NOT at fault you have no responsibility and the vehicles insurance company that is at fault must pay all damages and costs including a rental car. If you are at fault it depends on the vehicles insurance policy if it covers alternate drivers.