I have tried many things but I have found a cause of the problem.
The RAM on the phone was full. My carrier is T-Mobile, There is a free app, T-Mobile My Account, which has a tab Device Health. Click it, you will find Device Performance --> Show all tests -->RAM Usage --> Memory Boost (tab to...