text: It could be a couple of things.  Most likely it is a muscle or hernia.  If it hurts bad when you breath it could be an intercostal muscle, these are the muscles that help you breath.  I would see a doctor if the pain doesn't go away.  Stay away from any pain medication because that will just mask the pain.  Make sure the pain goes away because your body recovered.