If it's a new drive, I suggest you contact the shop and ask for a replacement. If it is a second hand drive, you probably got a worn out drive. You can try to contact the seller but probs easier to buy a new one.
CD/DVD drives do wear out after a while if they are used constantly. I have had several CD/DVD drives go out on me over the years.