Welcome to the forum!
We appreciate your feedback, Sharadphulwaria. You may want to set a password on your phone if you would like to secure your files. Visit this link to know more about it:
However, if you would like an application that can lock your text messages or your emails, you may share that idea with Microsoft. Here's the link for your reference: