Hello and welcome to Apple Support Communities hoan64,
Thank you for contacting us regarding restoring you iPhone. You have come to the right place and we are happy to assist you. If we understand correctly, your iPhone is in recovery mode and when you try and plug into iTunes, it is not successful. We can understand why you’d reach out for a solution. To start, have you updated iTunes to the most current version? Additionally, is the computer software up to date and security software turned off? We have with detailed instructions to restore the iPhone. You need to be sure to follow the steps exactly as the article explains or it may not resolve the issue. We would recommend you restart the computer, and also try running iTunes as administrator as well.
If your iPhone, iPad, or iPod touch won't turn on or is frozen
If your device turns on but gets stuck during start up
If you see the Apple logo or a red or blue screen during startup, try these steps:
Connect your device to a computer on a PC, open iTunes.
Locate your device on your computer.
While your device is connected, follow these steps:
iPhone 8 or later: Press and quickly release the Volume Up button. Press and quickly release the Volume Down button. Then, press and hold the Side button until you see the recovery mode screen.
Hope this helps.
Thank you for contacting Apple Support Communities.
Best regards.