One switch controlling 2 lights
You are probably not replacing a 3-way. A 3-way switch system uses two switches to control one device. Try using a regular(single-pole) light switch. Connect the the 'live' line or power wire to one side of the switch. Now any device(s) connected to the other side of the switch will be controlled by the switch after you turn the power back on.