Shellbird,
I agree with Scubadoc, check your regulator out, however, I would bet you had a mild panic attack and just need to calm down. I had a similar experience during a low vizibility dive a few years ago. I had not been diving regularly and went on a low viz dive with Walter from this board and my daughter at Venice Beach, FL looking for fossilized sharks teeth. This is a shore entry and a long swim. My daughter and my brother were connected via a buddy line, the plan was that I would follow as best as I could and if I got separated, surface, find the flag and follow the line down to them (the depth is a max of about 18 ft). This happened two or three times and I was a little underweighted for my full wet suit (it was December). Each time I followed the line down I had to really fight to get down. Of course, I was exerting myself and breathing hard, making it even harder to descend. On the third time down the flag line, I began to hyperventilate. I tried to stay on the bottom and calm down, but again lost sight of the other two divers. I surfaced and stayed near the flag, but decided to call my dive. When Walter surfaced to check on me, I told him I was heading back to shore, but they should continue the dive. On the slow kick back to shore from about 200 yards or more out from the beach, I had time to analyze what had happened and I basically had a panic attack. Never happened before and it made me feel very uncomfortable. The next few dives I made made me a little uneasy, because I was concerned that I may get this panicky feeling again. Well, my nervousness was all that happened and I am completely comfortable in the water as always, but I learned a very valuable lesson. Anyone, that means ANYONE, can get panicked and how you handle it is the key. Always keep thinking and you should be ok, keep yourself calm, conciously slow your breathing. Do this while you are at depth and handle the problem there if at all possible.
Anyone else have any suggestions that can help?