I didn't install this originally but looks like the bracket has broke off from the door. Also it appears that the door itself is damaged. What is the best way to repair this?
Once screws rip out I like to reenforced the door. I would get a larger piece of metal several inches wider. And screw into the door in 2-3 new locations if in the center use flat head screws there. Then attach the original bracket to the new piece of metal.
Next I would check that the door moves up with only a few pounds of force. I have found garage like you have when the torsion or one of the torsion springs break. If the door feels like more than 30lb you may want to inspect your spring(s). Broken springs are not hard to replace but can be quite dangerous (believe it or not even fatal at times). Door pros can knock a broken spring out quickly. This may be the reason the bracket ripped loose.
Your best bet is to remove the existing screws from the bracket and fit the bracket back into place on the door. It appears that the lower lip on the bracket gets inserted behind the metal channel on the door. Line up the holes in the door with the holes in the bracket. Drill through the bracket holes with the same size drill all the way through the door. Get some bolts long enough to go through the door from the outside, with a washer, through the bracket then another washer and then a nut. tighten up everything and that should do it. Good luck.