A flame, as well as the smoke it produces, contains both positively and negatively charged ions. That means that flame is more than capable of conducting electricity if provided with a high enough voltage.