Its very uncommon to see this happen. You can first try to reset the network settings, which may fix the call quality. You can do this by tapping Settings - General - Reset - Reset Network settings.
If this doesn't fix the problem, you may need to get a new SIM. Very rarely there are bad SIMs and it can drasticly affect the call quailty.
Hope this helps!
Is the iPhone X worth it? Find out why it totally is!
Find out how to track your iPhone's delivery!
Let us help you Give the Gift of AT&T Wireless this holiday season!