Hello
When this happens, can you check the printer, and see if it has any error light on, or does the LCD screen show any error message?
Can you print from a different device, such as your smart phone from the same network?
If there's no error on the printer itself, and printing from another device works fine, try this:
Type Services in the search on the taskbar to launch the Services app, right click on print spool and stop it.
Then go to File explorer, find the folder C:\Windows\System32\spool\PRINTERS
Delete everything in that folder. Then go back to the Services app, and right click on print spool to start it. And see if that helps.
If not, tell me, what's your printer's brand and model?