If it ONLY happens on car rides, then it sounds like anxiety, or even motion sickness, which does affect some dogs.

We've talked about that, actually here and even here