When you encounter such issues, the first thing to do is to launch the Maintenance section for your printer. I am recommending this because it's pretty easy to diagnose errors. Therefore, start the maintenance software and print a test page. This will print different colors, lines, and patterns. Depending on your device it will perform alignment as well. If lines don't print correctly, then check the ink tanks. I am pretty sure the issue is caused by the lack of necessary ink in the tanks. The same applies to a laser printer a well. The toner needs to be refilled. Once you check and fix these, go back to Adobe InDesign and print again.
Note: In Adobe InDesign make sure you have lines that are seen properly and have their colors set up.