Obviously, the only person who knows if you should buy a new computer is you, it depends on your budget and how you use the machine. As far as the CD, there are lots of reasons it might not be working, so you'll have to provide more info. It's pretty cheap to buy a new drive, $20-30 gets you a decent one nowadays.