As @saneagle said, you make sure the connector by the pedal is pushed firmly all the way in to the line, and check you haven't damaged that motor cable where it comes out from the rear wheel axle when you were fixing your tyre.
If that all seems okay, you can trace the other end of that motor...