I have the exact same problem my phone started doing all of those things, and in the same order.
I have done the factory reset by holding the power button and volume button, but the top half of my screen is not working. So as I'm trying to set up my phone it asks to connect to the wifi and I...