An ECG shows the electrical activity of the heart and can be useful in the diagnosis of palpitations, atrial fibrillation and chest pain.