my router is not connecting

I have a hp printer. My printer's USB port has been damaged so I decided to connect my hp printer with my router. At the time of connecting, it wanted a WPS pin. I somehow found the WPS pin on hp printer and connected it. But after that, I noticed that my router was not working anymore so that my printer stopped working too. I couldn't find any solution to that problem. What should I do now??