I seemed to have hurt my my hand, or sprained it it hurts...what can I out in it?

I was sacking groceries and I got a,bad pain on back of hand… It hurts when I move it ,sometimes…