I have an XB360 that when you open the CD tray, insert a disc, close it, it will open up and you have to close it (then it opens) a few times for it to read.
It's a 16 year old console, might be time to retire it? Or you can go get the drive fixed, or you can attempt to fix it yourself by checking youtube.
Sounds like the laser might be going