There's a small hole in the SIM card tray. Push either a SIM card eject tool or a paperclip into it.
Press the tool in order to eject the tray. You may need to use some force to do this.
Take the SIM card tray assembly out of the iPhone.
Make sure that the SIM card is in proper orientation (in relation to the tray) when you're placing the SIM card back.
Lift the button assembly cable from its socket on the logic board with a spudger.
Make sure that you lift the connector and not the socket itself. If you lift the socket, you risk breaking the connector completely.
Lift the Lightning connector cable from its socket on the logic board with a spudger.
Make sure that you fold the Lightning connector cable so that it's not in the way of the logic board.
Disconnect the rear-facing camera cable from its socket on the logic board, using the flat end of a spudger.
There are seven screws on the logic board. You need to remove them.
One 2.4 mm Phillips screw
Two 2.3 mm Phillips screws
Four 2.8 mm Phillips screws
Remove all of these with a small flathead screwdriver.
Lift the logic board up so that you can grab it with your fingers. Do this with a plastic opening tool.
Separate the logic board and the rear facing camera only slightly.
The logic board is connected by an antenna cable on the back, so don't remove it immediately.
Turn the logic board toward the battery (similar to turning a page in a book).
Disconnect the antenna cable on the back of the logic board with the flat end of a spudger.
Take the logic board off the iPhone.
You need to remove two screws:
One 2.9 mm Phillips screw
One 1.5 mm Phillips screw
Lift the speaker from the rear case with the flat end of a spudger.
Do not lift the speaker completely out of the case.
There's a small peg that slides into the slot located beneath the home button cable socket.
In order to free the peg from the Lightning connector assembly, you need to lift up the speaker and pull it toward the side of the phone.
Take the speaker out of the iPhone.
You need to remove five screws.
One 3.1 mm Phillips screw
One 2.9 mm Phillips screw
One 1.5 mm Phillips screw
One 3.6 mm Phillips screw
One 3.4 mm Phillips screw
A mild adhesive is holding the Lightning connector data cable and the rear case together.
Separate the cable from the rear case with the flat end of a spudger.