OnePlus X running lineage overheated lost all the contacts
If you manually didn't take any backups before (using TWRP, titanium Backup or any such app), no there is no way to get that information back. WhatsApp takes daily backups, so might get those back. Contacts are usually synced with your Google account. 

If you really want some content back, you can try apps like Undelete that can get back deleted files, but there it's difficult to track what system files you need to recover to get those messages back.