How does reducing gene flow cause speciation?

How does reducing gene flow cause speciation?