if you disconnect the hard drive and boot, you'll get another message. That proves that it still boots from that drive, not from the Linux of Windows install cd or stick you tried to burn.
However, you don't "burn" to a USB-stick , and Windows and common Linuxes don't fit on a cd, but need a DVD, so that might explain it doesn't work, unless you did something else than you told.
Are you sure that disc or stick is bootable? How exactly did you make them? Can you boot from them on another PC? Does your PC boot from an old original holographed Microsoft Windows disc you used for Windows XP, Vista, 7 or 8?
I had a dual boot Ubuntu and Windows 10 and they were working normally...I formatted the hard drive outside the laptop by deleting all partitions and when I returned the hard drive back into the laptop when I open the laptop it shows "Ubuntu boot failed" message and after continuing it shows "Windows boot manager boot failed" I tried to burn a linux or windows on a usb or cd when I enter the boot menu and choose to boot from usb it gives me boot failed error the only working choice is the hard disk and it is in legacy mode I entered the bios menu and changed it to UEFI but after saving and restarting I entered again to find all settings are unsaved....any suggestions for how to stop seeing those boot failed errors and boot normally in UEFI mode ?