Hello drex_578,
Thanks for reaching out to Apple Support Communities. Upon review of your post, it seems that you have noticed your iPhone locking itself unexpectedly. We can see why you’d want this taken care of, so let us help from here! It’s possible that there is something in the backup that you transferred over that is causing this, even if it wasn’t happening on your old iPhone. We’d also suggest removing any case or screen protector that may be on the iPhone temporarily, to see if it is causing unexpected pressure on the display and encouraging it to lock.
In addition, the following standard troubleshooting steps can help with a great many unexpected behaviors:
1. Restart your iPhone
2. Update your iPhone, iPad, or iPod touch
3. Close an app on your iPhone or iPod touch
Please let us know if you have follow up questions, so we can continue assisting. Take care!