If you removed the SIM card from your iPhone in the previous step, now’s a good time put it back in your iPhone. We’ve eliminated the possibility that your SIM card is causing your iPhone to restart. Hopefully the hard reset will fix the problem where your iPhone kept restarting, but...
Fortunately for most cases, there is a simple solution to why your mouse pointer would jump around the screen.