Thank you for the replies.
1) Problems such as yours generally indicate a loose wire or a faulty splice connection. Since the fan contains a light kit, double check the fan blue wire splice at the ceiling box.
2) Another possibility is the wall switch is failing. In order to confirm if a wall switch problem or not, you can also temporarily "by-pass" the wall switch and see if the fan problems go away.
3) Lastly, double check the middle tab connection at the light bulb socket. The middle spring like tab inside the light bulb socket is the hot circuit connection to the light bulb. With the wall switch or the circuit breaker in the OFF position, gently bend the light bulb socket middle tab to make sure it is making proper contact with the light bulb. Over tightening of light bulbs can cause the socket tab to be compressed and not making proper contact with the light bulb.
Hope this helps………If you have any additional questions, let me know and I’ll be glad to answer them for you.
Otherwise, don’t forget to rate me before you log Off.
The next time you have an electrical question, you can also request for me at: http://www.justanswer.com/home-improvement/expert-your-electrician ……….Thanks…………..Kevin!