Since both your analog sticks don't work, it is likely that something is wrong with the chip that converts the analog signals to digital signals.
Maybe check in this area if there is damage/ scratches/ knocked off components.
If your buttons are working, presume the chip itself is working.
For...