power to the receptacles but nothing is working.?
The problem you are describing is known as an open-neutral.  Essentially, all of the black wires are connected properly, but one of the white wires is not.

You will likely have to go back through all of the light/plug/switch boxes that are on that circuit until you find a loose white wire.  You may have to double check that the connections are secure by removing the wire nut.

Be sure to turn off the circuit breaker before opening any neutral connections, opening these connections with the power on can be very dangerous!