Sex hurts

Sex hurts, help, I think when I didn't use a condom (on the pill) it rubbed it raw cause I wasn't wet enough? And I waited 3 days to hurt again and used tons of lube and there's still pain? Is there a problem?