Maybe there is lint or dust in the port and the aux cord has trouble plugging in. If you have a case, try again without the case. What happens when you reboot?
You can reset settings: Settings > General > Reset and tap Reset All Settings.
https://discussions.apple.com/thread/7234451
This worked on iOS 9 aux issues.