Forget Pattern Lock Problem, any aps is not working Your device is very slowly working you should Make a hard reset. i will tell you how to make a hard reset you smart phone nexus 5 lg D821 or lg d820. Few step you can do it easily.
First Backup Your All Personal data On Sd Card or online backup remove sim card and memory card.
1. First Turn OFF Your Smart phone.
3. Volume Down Key To Select Recovery Mode
4. Now Use Volume Down key To scroll and select this wipe data/factory reset Press Power Key To Confirm.
5. than select yes - erase all user data press powe key and wait few second
6. after finish that select reboot system now.
Done
First Backup Your All Personal data On Sd Card or online backup remove sim card and memory card.
1. First Turn OFF Your Smart phone.
2. Press and hold both Volume down key + press Power Key To Turn ON your Device. when show start on your device screen release all keys.
3. Volume Down Key To Select Recovery Mode
4. Now Use Volume Down key To scroll and select this wipe data/factory reset Press Power Key To Confirm.
5. than select yes - erase all user data press powe key and wait few second
6. after finish that select reboot system now.
Done