Chosen Solution

iPhone 7 will not respond to touch , all of the buttons work and opens the sign in screen but will not let me enter my security code, I tried to reset by holding the home and power buttons but did nothing can anybody help??

I opened the phone and closed it and it now works