cranks but no spark at coil

Had the symptoms years ago same situation I cleaned the terminals and then it started and ran perfect. Sounds to simple but just thinking out loud