Almost all audio-related functions are failing (iPhone 7)
If you've tried restarting, updating, and factory resetting and have had no luck fixing the issues, you may need to send your phone in to Apple for repair. Getting stuck on the Apple screen for hours, even after reset, leads me to believe it's a logic board issue. Personal repair may be expensive, difficult, and will cause damage to the waterproof seal.