Hello wil137,
For difficulties when your iPhone is connected to your vehicle via USB, you'll want to take the steps below:
1. Restart your device and your car.
2. Make sure your device is unlocked and on the Home screen.
3. If possible, try to connect using another cable or USB port. Check the manual that came with your car to find out how to connect an Apple device.
4. Check your charging port for any debris or damage. Make sure your charging cable is inserted correctly into the port.
5. Update your device.
6. Make sure your stereo is using the latest firmware from the car manufacturer. Check your car's manual for more information.
You can also find those steps in this resource: How to connect your iPhone, iPad, or iPod touch to your car - Apple Support
Should that behavior still persist, you'll want to reach out to Apple Support: Contact - Official Apple Support They'd be in the best position to look into this behavior further.
Take care.