Electric Current is a closed path through which electrons can flow. Electrons flow because of a difference in potential. When a switch is turned on it causes electron to flow. Remember that static electricity is the build up of electrons. When the static charge causes a spark the flow of electrons that is created is very short. The electrons always flow from where there are more electrons (higher potential) to fewer electrons (lower potential). Static discharge quickly balances out the electrons and there is no more difference in potential.