can intel motherboard work for dell inspiron m5030 instead of its faulty amd motherboard

Solution
New motherboard -> New Windows license
You will also have to get a new CPU if your previous CPU is an AMD.
And that is all assuming you can change the motherboard, which you probably can't do or it'll be very expensive.