You probably just need to clean the print heads. The following instructions are for Windows 10 but other versions of Windows will be fairly similar:
Turn your printer on.
Go to the Windows search box on your computer.
Start typing 'Printers'.
When you see 'Printers & Scanners' in the results above the box, click on it.
In the list that appears, click on your printer model and then on 'Manage'.
Click on 'Printer Properties' and then on the 'Maintenance' tab.
You should then see 'Cleaning' and 'Deep Cleaning' options (or something similar - it might vary slightly across different makes and models of printers).
Try using the 'Cleaning' button and then printing out a test page. That might work but, if the printer hasn't been used for some time, it's probably more likely that you'll need to use the 'Deep Cleaning' button. (An inkjet printer ideally needs to be used at least once per week. If it's several months since you last used it, the ink in the print heads could be really dried up). If you get no joy at your first attempt, keep on trying. I've sometimes had to use 'Deep Cleaning' about a dozen times before the print heads have finally cleared on a printer that hasn't been used for a long time!