It sounds like you need a pull-down resistor on Pin 3 .... you could hook a 10kOhm resistor to pin 3, and that would give it a known state (low) then, you have your switch which is connected on one end to vcc, and the other end to Pin 3 (preferably through a 1k resistor).
Also, be sure to have...