Why would the electricity shut off when you plug a light bulb in a certain outlet?

The problem sounds like it could be a simple as a loose wire at the outlet, sometimes the outlets are wired using the stab in terminals in the back of the outlet instead of the binding screw,any movement causes the circuit to open. However if you are tripping the circuit breaker when you plug in your device a short is the reason.