my ceiling fan and light do not work
When you have a fan/light combo and the lights are flickering or not turning on it generally means you have a problem within the fixture itself. The only thing you can really do is to check the box below the fan and see if any connections there are damaged or loose. Then do the same for the junction box above the fan. If you cannot find anything wrong with the wiring, then it is probably the fixture itself that is going bad. Because repair is usually much more expensive than replacement, I would recommend replacing the entire fixture. 

Hope this helps.