Check for a frayed or loose cable which could be dangerous. Using a test meter, check the continuity of the wiring from the plug, through the switch to the lamp holder.