Use multiple techniques to effectively release pinned craft and equipment
Every pin is different. The first step is to try an guess how the boat became pinned and the easiest way to jostle the boat. If safe enough, Get a person or two out to the boat. Pull on the ends to see if the boat can be moved. See if the boat can be rotated in a way that migrates the cockpit downstream. Where possible, determine how best to use the current to help rather than hinder your efforts.
Now that the analysis stage is completed, set the tag and hauling lines in advantageous positions. If rotating, perhaps you can attach to a pin bar close to the cockpit and use gravity and current to your advantage. If the boat can be moved forward or backwards, attach to that end and pull. Usually you only need to move the boat 12" and the current will do the rest for you. If stuck in a sieve, chances are you will need to pull back out the same way it went in - that is from upstream. If caught in an undercut that appears to be clean with lots of flow coming out, you may need to pop the air bags. In this situation, you will need to be exceptionally careful to avoid the same fate as the boat.
On dam released rivers like the Savage, consider tying off and wait for the water to drop. This is a common occurrence on this river unfortunately.
Paddles can be a real challenge to rescue, especially when lodged in a sieve. This is just another reason to carry a breakdown paddle or hand paddles. It may be possible to pull and twist but not always.
Use manual pulling and jostling where possible. Next, pull from a safe distance with lots of helpers. If you are really shorthanded, consider mechanical advantage systems like the C-Drag or Z-Drag.
Focus on rescue priorities - people over equipment
Rescue priorities don't change - equipment comes last! Once everyone is safe and sound, take a break to study the situation. Pins take time to work on and free, don't forget setting safety above and below. If unable to free the boat (highly unlikely these days), notify the local fire department of police so they don't send rescuers looking for a missing boater.
Advanced techniques
The Steve Roberts Rope Trick is a very handy method for turning the boat while hauling it out of the pin. This same link also shows an example on how to construct a Raft Taco to lift both ends of the raft free and empty as well - it is at the bottom of the article.
Understand rescuer hazards associated with pin release
Freeing pinned boats does have some associated hazards. This is why we take our time to evaluate the best and safest course of action. The first and most obvious is when the boat is freed, it will contain hundreds of pounds of water that is accelerated by fast moving current. Riggers need to be especially cautious and probably should get away from the boat if feasible. Avoid placing your feet inside the cockpit as this may lead to foot entrapment. The haulers on shore need to be prepared as well. The hauling line will soon get a great deal of force as well. If simply pulling on the boat and it gets out of control, rope burn is one possibility. This can be mitigated with gloves and especially a no-knot tag line. An independent spotter is another great safety precaution.
If all participants are safe, waiting for low water may be a viable option
If it is just a boat pin and you are on a dam controlled stream like the Savage River in Maryland, tie a tag line with a tensionless hitch to a tree or other suitable anchor and wait for the water to drop. It should be much easier to retrieve at low water.