Microwave wont heat

Hi,
i am having a problem with me GE profile spacemaker xl 1800. It wont heat up when turned on. There is a semi loud humming noise coming out of the microwave when i turn it on with something inside of it. Can you please let me know what may be happening or what part do i need to fix it, and the process in doing it. i would appreciate it.

thanks,
Peter

I put the microwave in defrost mode and when it changes power it stops making the humming noise and when it changes power the humming noise come back. Just wanted to give you a update on what i tried.
Thanks,
Peter b.