Hi,
If you have actually lost power to certain sockets and others are still working, then it strongly points to a wire having been dislodged. THIS COULD BE DANGEROUS. The fact you have asked the question suggests you do not have the confidence or knowledge to investigate the problem, so I strongly recommend you get a professional electrician to check it out.