Trying to wire the bathroom light switch, but vanity light will not come back on. There are two wires, black and red, plus a ground wire that wasn't hooked to anything originally just touching the side of the box. The black and red wires were stuck straight into the back of the switch that went out, not wrapped around the screws on the side. I am at a loss as to what to do. The red line has been dead until just recently when I got a second new switch to hook everything up to. The red wire is now currently hot after not having been so during my previous attempts.
sounds like you probably have a 14-3 wire but the red wire may not be doing anything. The black wire should be across the switch and anything on the other side of the switch will go off and on with the switch. White wire shouldn't go across any switches. On receptacles, the black wire always goes to the brass screws and the white wire always goes to the silver screws. There are two ways to connect to a switch or receptacle with 14 gauge wire: you can push it in the holes in the back or you can connect it to the screws.