My phone goes off automatically and when i open it it's only showing the huawei logo on screen.
Looks like you are stuck in boot loop. If you are not sure how to fix this, I suggest that you take it to an expert for repairs/fix. I wouldn't mess with this if I don't know what to do.