Burner problems

i have a magic chef stove model 31203PAV and the front right and rear left burners were not working. i swapt one working burner with one not working and the burner worked. So i bought two new burners for the front right and rear left. When i put them in the new burners didnt light at first. Then i put the new burner in the front left and it worked. I put the new burner back in the rear left and got the rear burners and the front right to work. The old front left wouldnt work. Then i reconnected the front left and it worked. But the front right and rear left(which are the new burners) wont work. I am not sure what is causing this. Electrical problem underneath? They burners that dont work are not sparking but gas is coming out. Any ideas?