The black wire goes to either the brass screw or the hole in the back of the device. Sometimes this wire is red. The green or bare copper wire can be attached to the green screw terminal on the switch or to the electrical box.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.