damaged operating system

My operating system was damaged and it won't let me deactivate my license and now how can I install it again?