Perhaps you should provide more info. What OS are you running, what pen drivers (have you tried removing them and let Windows re-install them?), what apps does the pen not write in (OneNote, Windows Ink, Photoshop, all?), does the pen tip act as a mouse moving cursor around?