Could be something as simple as a dodgy connector, but is usually broken DMD legs where the leg goes into the glass, you can repair by breaking away a little of the glass then soldering, I have done a full replacement once, big job:
http://aussiepinball.com/index.php?topic=4684.0You can see in the fourth photo down what you need to do to fix one leg.