What can cause this?
If some are flat, some perfect, and one exploded, I would guess that it is either uneven distribution of the priming sugar, or poor bottle capping
As Kickass said, an infection could be the cause of the explosion, but that wouldn't explain the some flat, and some perfect.
The explosion could also be caused by bottling too early (before fermentation had finished), but if that were the case, all the bottles would be over-carbonated.
If you use some screw top bottles, and some regular, then the screw tops may not be sealed properly causing low carbonation.
How did you mix the priming sugar with the wort?
Ideally, you should mix the sugar with a small amount of water (about 1/2 - 1 pint for a 5g batch), and boil for 15 minutes; then cool and dump the sugar solution into the bottling bucket. Then you should rack the wort on top of the sugar solution, and bottle.
Some don't bother to cool the solution before racking. This will kill off a very small percentage of the yeast when you rack, but probably not enough to worry about.
Others say you should stir gently after racking to mix the primed wort. I have never found this necessary, but it shouldn't hurt providing you stir gently.
Still others say you should give a stir periodically while bottling. I think this is complete overkill, but that's just my opinion.
Hope this helps.
-a.