Sounds like you breathed in the pain and might have given yourself something like bronchitis or possibly a sinus infection. The dust and fumes from sanding paint aren't good to be exposed to without a mask.
Go to Urgent Care and get yourself checked out.
Good luck!
~ Em