More information is required.
- Which phone?
- Operating system?
- What are you doing on the phone when it freezes then shuts down?
- Any error messages?
- Any problems with the battery or battery life?
- What was repaired on it? / Who repaired it?
- Has the phone been dropped or damaged at all?
If you find a post useful, please give the author a "Like" or mark as an accepted solution if it solves your trouble. 🙂