Whats not working on it? Does it power on? Does it open? Does Windows recognize the drive? Have you checked different discs and disc types? Does the drive spin the disc?
There are multiple things which would go wrong with cd/dvd drives. My main question however is how old is the drive?