Problem The phone no longer opens


Hello! I have an older phone, Huawei y6 2015, whose software broke 3 years ago, then I tried to install it myself, but it didn't work, and I gave up. Then the phone would open and show me an Android on the screen. The other day I wanted to charge it, use it, but it doesn't charge, I connect it to the socket, the red light comes on and goes off, that's all it does, I left it in the socket for 20 minutes, and I tried to I open it, it doesn't work, laughing, it doesn't open, but only when it is connected to the socket, the light turns on and off. Do you think it's a software or motherboard problem?