The DVD burning software or similar might be locking the drive. Download & install the free Unlocker click here. Right-click the drive *when it locks-up*, & select Unlocker. Does it show if anything is locking it? If yes, unlock the process(es) within Unlocker until *nothing* is locking it any more & try again.
You can also, removing & re-seating the IDE cable or another IDE cable.
If no joy with the above, & nothing else helps, consider a new drive. These are only £15-20 to buy new. Let us know if you need suggestions. G