Before replacing any parts, I recommend checking the breakers for your dryer. The motor will run if only one of the 120 volt legs of 240 volt power if supplied to the dryer. If the second leg of 120 volt power is missing, the dryer will not heat.
If the breakers are okay, I recommend checking the voltage at the outlet using the diagram in the image below. NOTE: You should only check this live voltage at the outlet if you are completely confident in your technical ability to safely measure it with a volt/ohm meter.
Without a model number, I am not able to see the type of dryer that you have. The heating element and other heating circuit components are access on some models by removing the back panel. On some models, you need to remove the bottom front access panel as shown in the second image below. NOTE: Be sure to
unplug the dryer
before accessing internal components.
If you need more help, resubmit your question with additional details and the full model number of your dryer.