Thanks for that info and choosing the Apple Support Communities. Based on what you stated, it seems you are experiencing issues with your iPhone not working as you expect. Since this happened on your iPhone 7 and now also on your iPhone X, your next step is to use iTunes on your Mac or PC to backup and restore your iOS software to factory settings, as this process erases the information and settings on your device and installs a fresh copy of the latest iOS software. Temporarily setup your phone as new to test your issues, and then restore your backup and test the issues again.
How to back up your iPhone, iPad, and iPod touch
Import photos and videos from your iPhone, iPad, or iPod touch
Restore your iPhone, iPad or iPod touch to factory settings
Restore your iPhone, iPad, or iPod touch from a backup