My pinky finger hurts is it broken or sprained. Please help me figure it out?

Depends. While most finger injuries especially in sports are sprains especially at the pip joint. However, if there is a large amount of swelling and limitation of motion, an xray would certainly be appropriate to rule out a potential fracture which will be important to help determine the optimal treatment for the problem.