had this problem, sent to apple. they wanted £157 to repair!

I took the phone apart myself and found a screw loose inside!

Once I put the phone back together all was fine.

HOPE THIS HELPS!!!