Put some Crack-Fill Putty on.
Typically, the gaps are close to doors and windows, where they trap moisture and cause further wall damage. After filling in the holes and cracks with crack-fill putty, remove the loose plaster. To stop any more cracks, you should repaint your wall with a waterproof finish to stop any more cracks.