If connecting and disconnecting your headphones didn't work, you should clean your iPhone's port ... Note that if you have an older iPhone it may not be compatible with the latest operating system ...