You wont be able to close the account if it's not in your name.
To cancel the contract on any phone, a text is sent to that phone.
It seems weird that you can access texts and emails if you know nothing about the phone or sim?
IF the contract is in your name then follow this guide to cancel
Veritas Numquam Perit