Chosen Solution

All the buttons on the side of my iPhone the volume how are silent switch to not work after I replace the screen and digitizer how can I fix this

Double check your work once more, there’s is no obvious way a screen replacement would influence volume and ringer buttons behavior, except for the fact the little connector is a little bit pesky. Possibly torchlight is not working either. Check the connector on the board is in good shape and free from debris too. Test it before closing the phone but always remember to disconnect battery prior to working on the board.