Before you replace anything, try this [https://www.youtube.com/watch?v=izsUH5TGRaI|Use a toothpick to clean out your iPhone]. It might fix your problem.
open