First, make sure all your hardware is seated and connected properly. Next, run a program like CCleaner and make sure the registry is cleaned of any damaged/unused entries. Then, reinstall any programs and games that are affected. If this doesn't help, you may need to do a complete reinstall of Windows.