How can I fix the wall so I can put the rod hangers up?

the wall at the top where I put the rod hanger for my curtains has come out . How can this be corrected? Please help me....

  3 answers