What types diseases of the heart can an ECG detect?

What types diseases of the heart can an ECG detect?