Hello. Welcome to hcm.
You might have probably broken your ribs causing pain. It is generally not to be worried of but as you had a episode of severe pain
causing breathing problem,i advice you to visit hospital and get a xray done. It is to confirm that rib has broken. If not,then you will be cleared to play sports and pain might go in some days with pain killers. Or else rest is adviced which other wise might aggrevate your problem.
All the best