I have not had an accident that I know of but my finger has swollen over and on the side of my nail it is very sensitive it had some pus on it I drained that and it felt better for a few days but it has gotten back to hurting again

Sounds . Sounds like a paronychia: an infection of the skin adjacent to the nail (kind of like an ingrown toenail of the finger.) the key to treatment is adequate drainage, so that the skin opening doesn't close before the abscess heals in from the bottom. This would be very hard to do yourself, so i suggest you see a hand specialist for adequate treatment. Good luck!
Ooften . Ooften afar it drains it begins th feel better. Soaks in hydrogen peroxide is something that i usually ask people to do. However you need to be under a doctors care.