Both the motor and the light work off the switch box separately USUALLY.
1. Look under your machine to see where the cord to the light is coming from. If the light cord is coming directly from the switch and the light is on, we can check that off our problems.
2. Now we need to see why the machine isn't moving. If you have a fairly new machine, it probably has a Servo motor which doesn't really make any noise when it runs. If you have an older larger motor, you may be able to hear the motor run when you turn it on. One way or the other, you still need to make sure if the belt is on both the motor and the hand wheel. Using a flash light or other bright light, follow the path under the machine of the black belt for your machine. It should go around a pulley on the right side of the motor and go up through the table and around the hand wheel on the right side of the machine. Because of the belt cover that is on your machine to keep us from getting things caught in the belt, it is almost impossible to see from up above. There is also a cover on the end of the motor sometimes and its hard to see in it.
3. If your belt does connect the motor and the sewing machine head as it should, press on the foot pedal while it is plugged in and turned on. If the motor pulley turns but the machine doesn't, your problem is in the machine. If the motor pulley doesn't turn, your motor is probably bad. If the motor turns, and the machine doesn't, try to turn the handwheel on the machine and see if it is jammed with thread or something else.
Once you isolate the problem, post again and we'll go to the next step. :)