Help! My motors are not working!
You have not said what you motor is and that normally has a big bearing on the answer, but I think your problem is you need more power.

A 9V battery doesn't actually give you much current, you would be better off with a 'wall wart' aka a mobile phone charger.  The higher the amps the better normally, particularly with motors.  Try and find one that can put out 5Volts at 1Amp (assuming you have a 5V motor).

Also make more use of Serial.println() to show you what your program is doing.  If you had debug statements in the LDR if statements then you would know the switches are working.