I agree with previous posts. Also, check to make sure gfci is not tripped.
It has happened to me twice on 2 different motorhomes over the years. Plug in the mh to cool the fridge before a weekend, and fridge only runs on gas. Gfci tripped in the bathroom.
2005 Holiday Rambler Admiral SE 30pdd
2020 Jeep Gladiator Rubicon - Maximus-3, Blue Ox, RVi3, Cooltech
1993 Reinell 20' 5.0l - good old boat