You can factory reset a PlayStation 4 from your console's dashboard and via safe mode on your console.
Your PS4 controller not connecting is frustrating. Here are two ways to fix a controller that won't connect wirelessly.