It may look like a simple job to replace a switch or check for loose wires under a compression fitting (wirenut), and it is if you know what your doing. If you have little or no experience with working on electrical
DON'T DO IT 
...if you make a mistake there is a very real possibility burning your house down. As a master electrical for 30+ years I've seen some very dangerous home owner repairs.