Outlets that work only part of the time
This sounds like a loose connection in the junction box holding the outlet that works when wiggled. It may be a poor screw connection on the outlet, a bad wirenut connection or even a bad connection internal to the outlet itself.

The power in the bedroom is likely being fed from that bad connection.

Turn off the breaker that controls that outlet. Remove the outlet cover. Test the wires with a non-contact tester to make sure they are not live. Check all connections (screws, wirenuts). If nothing looks loose, replace the outlet itself, wiring up the same way as before. Mark each wire before removing it from the outlet so you can attach them to the new outlet in the same way. Replace cover. Turn on power.

If any of this seems daunting, you probably need help from someone with more experience.