Is the pain sort of between your ribs? I often get cramps in the intercostal muscles and it can be extremely painful (and sort of alarming until you know what it is). Those sorts of cramps can perpetuate themselves too - you get more cramps or spasms as a result of a spasm.