thanks for your query at HCMsevere pain
ribs can be due to injury
that you might have suffered , but you might not have noticed.
or it can be due to chostochondritis or myalgia
get one chest x ray done that will rule out any major disorder .
till then take tab combiflam
twice daily after meals.