In many cases of LEDs not working (they don't burn out like incandescent bulbs), the supporting electronics fails. The failure of the electronics causes too much or too little current and voltage to the LEDs. In the case of too much, the magic smoke escapes from the LEDs. In the case of too little, they sit there looking stupid, and don't turn on.
These types of LED failures are more likely in RVs, boats, and car applications than you would expect in a house due to the variable voltage supply (anywhere from 10 - 14.5V with higher spikes when a motor or pump shuts off), vibration, and poorly (and cheaply) designed and built support electronics. LEDs require voltages and currents within specified ranges to work at all.
In most cases, you should (or have to) replace the whole assembly, including the support electronics. In my Rockwood A-frame, both the roof lights (similar overhead fixture) are hard-wired in. I had to replace the fixture in total (approx $30) to get matching lights when one failed.
If you keep the fixture, make sure the replacement LEDs and electronics are rated for 10-20 volts or similar, and not just a fixed 12V (computers are highly regulated 12V uses of LEDs).
LEDs that fit in a bulb socket have the support electronics built-in to the LED "bulb".
just my experiences
2014 Rockwood A122 A-frame