You can enable assistive touch in the iPhone by following below steps.
Step 1 : open settings

Step 2 : select General
Step 3 : Select Accessibility

Step 4 : Scroll down and select Assistive touch under “interaction”

Step 5 : Toggle On button

Cheers !