The interesting question is not how Farage could win. He chose that town for his high rate of supporters.
The interesting question is: would a “real” candidate have beaten him?