Potty Training

My son is 3 years old and I still can’t get him potty trained. He pees in his pull up and changes it by himself. I know if he can do that then he’s ready to use the potty. I just can’t get him to go. He cries likes it a punishment when I stop him from playing to use the bathroom.