Connect the black wire to the screw located in swith 1. If it doesnt work switch the lower wires.

Switch Loops
Light switch wiring diagram red black white. This is a typical wiring setup for a 3 way light switch with black white red and ground wires. When wiring a 3 way switch circuit all we want to do is to control the black wire hot wire to turn on and off the load from 2 different locations. Connect the red wire to the screw in switch 2. Split the incoming hot wire into a y and connect it to a terminal on each switch. Red wire power or hot wire black wire power or hot wire white wire neutral bare copper ground. Black white and bare.
Going out of both boxes and into your light fixture will be 143 wire which has a black wire hot a white wire neutral a red wire traveler and a bare copper wire ground. Connect white wires together. In the switch box. Connect the blue wire to the red wire. This type of switch lets you turn the light off or on from more than one place in the room. The cable has a black wire which connects directly to the circuit and a red wire which connects to the switch.
The ground wire also connects to the switch but the white wire gets spliced to the circuit neutral wire and bypasses the switch. The diagram below will give you a better understanding how this circuit is wired. The standard way to power a split tab outlet is to run a three conductor cable to a wall switch. Connect the white wires together. The most common home wiring uses non metallic sheathed cable with three wires in it. Twist the two copper wires in the first box together and attach them to the ground nut on the switch.
Wiring a three way switch. A three way switch is different. Some sheathed cable includes a fourth red wire which makes it useful for wiring. This type of switch has two brass screws usually.