If I accidently deleted it, how to restore it?
Unless you had them backed up (computer, iCloud), they aren't retrievable, unfortunately.
@Message_Lost, I apologize that once you "manually" delete text messages from your device, you will be unable to retrieve it back. If you currently have an Android or iPhone device, you have the option of downloading various applications that will backup your messaging threads. ^LH