An electrocardiogram helps the physician determine the overall health of your heart and uncover the cause of any chest pain.