Chosen Solution

I just replaced my old screen, battery and charging port and everything works except the charging. I can use my headphones or charge my phone. Please help me

Assuming you cannot use the headphones or charging port, I would suspect a defective replacement charge port. However, it could also simply be in improperly connected charge port so check out this guide and double check your work.