Use this guide to replace the Lightning connector assembly, which also includes the headphone jack and microphone.