You put it in recovery mode, how: recovery mode:
Press the Home + Power button until you exit the apple of Apple, when the power comes loose but holding down Home until you see the symbol of iTunes. When it does open iTunes on your computer and connect iPhone, iPhone should recognize as recovery mode and let you restore, follow the instructions on the screen.