Hi and welcome to HCM.
It seems like neck muscle pulling and thoracal wall contusion
. I doubt there is a rib fracture
,so the only treatment is to rest, breathe properly(not to shallow, take non inflammatory painkillers and lay with elevated upper body. Pain should pass in 2-3 days.If you have breathing difficulties,vomiting
or cant swallow food and fluids you should visit doctor. WIsh you good health.