HP laptop hangs and freezes

My HP laptop was never this slow before but now, whenever I open Microsoft Office files like documents and spreadsheets, my laptop just freezes or hangs. Restart button is not responding so I don’t have a choice but to remove the battery. How can I fix this?
