YankeeJim:
You hit the top of the bunker wall. What club were you using?
Exactly Jim.
You need a club with more loft to get out of there. And mishits in bunkers are likely to go anywhere they please - maybe on the fairway - maybe back at your feet.
Next time just hit a 8/9 iron out into the fairway (if the lie is bad, go with a wedge) You'll have a short wedge from there to the hole. Attack the pin, the green is flat and will stop near the hole if using a wedge.