When you say that you changed its charging board I assume you mean you replaced the charging port and the PCB it is attached to inside of the phone, is this correct?
First external things. You changed the cable and brick, did you also test to see if both or either worked to charge another device? The plug has a big hole in it which can also attract debris, so if it doesn't charge other devices check that it isn't plugged up.
I would also check that nothing got jammed in the port. One thing about these USB-C ports is they are big openings and it is easy for something to end up jammed inside of the port and not always obvious when the cable isn't going all the way in so, be easy when trying to remove it if you see something. I'd probably try air from either side first and then explore with a toothpick in the easiest most gentle way.
Did you personally do this or did you have it done by someplace like YouBreakiFix? If you had it repaired I would for sure take it back. They should stand behind their repair. If on the other hand you made the repair yourself and you don't find debris in the port you may have to go back in. New ports are tight and you may have used a bit of force to get the plug into a new port and not even realized it. I don't know how the board the port is connected to attaches in that device but some of those small connectors are easy to mistake for being connected correctly only to find they are not fully seated. Again pressing hard a small movement could have unseated it too, especially if it wasn't fully seated to begin with.
Hopefully you can correct this from the outside but let us know what you find.
Best wishes.