Could be many things
You don't don't provide enough information to be specific.
So could be almost anything. Painful bumps could be a viral or bacterial infection or a traumatic injury, as occurs when the tongue is bitten. You will need to have your tongue evaluated by a dentist.