I tried to re set factory settings now screen stuck with the white bar but not moving
Enter DFU mode and try again.
DFU Mode
Entering DFU Mode on iPhone, iPad or 1. iPod touch:
2. Plug your device into your computer with a USB cable.
3. Turn off the device.
4. Hold the Power button for 3 seconds.
5. Hold the Home and Power buttons for 10 seconds.
6. Release the Power button but keep holding the Home button.
7. After about 15 seconds you will be alerted by iTunes saying that it has detected a device in Recovery Mode.