" i tried to reset the settings of camera but it still didn't worked"
I doubt you did the reset correctly. P mode, go to menus>tools>clear all settings>clear all custom settings. It is explained more clearly in your manual.
OK since you refer to your Rebel T6 as the 1300D I suspect you are not in the US or you did not buy it in the US? However, if you are willing to pay for repairs, I think Canon USA will service it, if it is still in service life. A call to 1 (800) 652-2666 will answer that question.
2/07/2023: New product announcements!EOS R8 EOS R50RF-S55-210mm F5-7.1 IS STMRF24-50mm F4.5-6.3 IS STMRF15-30mm F4.5-6.3 IS STM