Peter, your motor cable should have a quick release plug like this:
pull the plug. After you repair the innertube, line up the two arrows, on both sides, and push the plug back in.
If your bike does not have the inline plug, cut off a couple of cableties along the seat stay to release the...