LCD lights up without working

If you have a pre-made cable, each wire should have its own color. Post a picture of the LCD, cable and Arduino with the connections easy to see. I suspect D8 and D9 are reversed.