The short answer
Several things worked together. Viking ships could carry raiders across open water and up rivers. Crews moved quickly and attacked by surprise. Monasteries and trading towns were rich and often poorly defended. Many of the kingdoms they faced were divided or fighting one another. Success was not guaranteed, though, and many raids failed.
Ships built for raiding
Norse ships were built with overlapping planks, a method that made them light but strong. They had a shallow draft, so they could land on open beaches, run up rivers and be pulled ashore. A ship could carry a crew and their gear to places that were otherwise hard to reach. The same ships served for trade and for war, so the skills of sailing and navigating were already common.
Speed and surprise
Raiders often struck quickly and left before local forces could gather. Small groups could split up, pick where to land, and move faster than the armies that tried to stop them. Surprise mattered a great deal, especially against places with no walls or armed guards. Many attacks were over in a few hours.
Easy and valuable targets
Monasteries, churches and trading towns held silver, metalwork and other goods that were easy to carry. Many had few people who were trained to fight. Monasteries were especially attractive because they were rich and often isolated, and the people who lived there were not soldiers.
Divided kingdoms
Many of the places Vikings attacked were divided. In England, Northumbria, Mercia, East Anglia and Wessex often fought one another. In the Frankish lands, royal authority was contested, and local lords sometimes made their own deals with raiders. Divided kingdoms found it hard to combine their forces. Some rulers chose to pay raiders rather than fight them, which bought time but often brought them back.
Organization and the Great Army
The Great Army of 865 was bigger and better organized than the raiding groups before it. Its leaders could plan campaigns across several kingdoms, take a town, and hold it for a season. Numbers for Viking armies are uncertain, which is a problem familiar to anyone studying medieval military unit sizes.
Trade, settlement and limits
Success was not only about raiding. Raiders traded silver and captives, and some stayed to settle. In the 800s and 900s, Norse settlers founded towns such as Dublin and took land in what became Normandy.
But the Vikings also lost many fights. King Alfred of Wessex held out against the Great Army and made a peace that kept his kingdom intact. In 885 and 886, the defenders of Paris, led by Count Odo, held out through a long siege. Raids that ran into strong defenses or organized resistance often failed, and many raiders never got the land or wealth they wanted.
So the Vikings were successful for a mix of reasons, but not every raid or campaign worked out.