The Anglo-Saxon defensive system of the late ninth and tenth centuries was such that villages were meant to not fight alone, but hold out and wait for relief forces drawn from the local levies of surrounding towns. This was a very effective tactic and results in substantial Viking armies being defeated in 893, 911 and 914 by provincial militias rather than the King's Army, at least according to the Anglo-Saxon Chronicle.
Unfortunately the Chronicle doesn't tell us much about small scale raiding. It's probably not deemed sufficiently important. Recently near Weymouth in Dorset, however, builders laying a new road found a pit containing 54 skeletons and only 51 heads. Dental and DNA evidence suggests that they're Vikings and a large longship crew was about 50-something men, so it's thought that this represents a raiding ship crew that were captured by the local milita and executed, with three heads carried off.
To clarify your question, you're asking about whether Vikings were defeated by the inhabitants of the village/town they were raiding alone? Without help from outside places or levies/military?
Disclaimer: A substantial problem with using the Anglo-Saxon Chronicle as a source is the fact that it's an extremely biased text and its level of detail is spotty. However, the Chronicle is occasionally the only or best source we have on certain topics, so rolling with that.
If you buy the Chronicle's story (which unabashedly purports to glorify the Anglo-Saxons, especially King Alfred and the Kingdom of Wessex), then the Anglo-Saxons were occasionally able to repel the Vikings from settlements, both major and minor, including London:
A.D. 851. This year Alderman Ceorl, with the men of Devonshire, fought the heathen army at Wemburg, and after making great slaughter obtained the victory. The same year King Athelstan and Alderman Elchere fought in their ships, and slew a large army at Sandwich in Kent, taking nine ships and dispersing the rest. The heathens now for the first time remained over winter in the Isle of Thanet. The same year came three hundred and fifty ships into the mouth of the Thames; the crew of which went upon land, and stormed Canterbury and London; putting to flight Bertulf, king of the Mercians, with his army; and then marched southward over the Thames into Surrey. Here Ethelwulf and his son Ethelbald, at the head of the West-Saxon army, fought with them at Ockley, and made the greatest slaughter of the heathen army that we have ever heard reported to this present day. There also they obtained the victory.
Source: http://avalon.law.yale.edu/medieval/ang09.asp (Check out that translation of the ASC for some more examples of "the heathens" and their assaults on Great Britain, both successful and not).