Can I switch all the stuff from my electric dryer to a gas dryer eliminating the gas burner
It may be possible to convert a gas dryer to electric, but it's not practical. Instead, I'd say you have two options.
Install a gas line
If you have a gas supply into the home, you could have a line extended to the area near the dryer. It will cost a bit of money, but it's cheaper than trying to convert the dryer to electric.
Return the dryer
Unless you bought the dryer on craigslist, a very long time ago, or from a not so reputable dealer. Most dealers will allow you to return the dryer, and exchange it for the correct item.  I'm sure dealers see this type of thing all the time, and that there are policies in place to deal with it.