How can I clean my iphone7 IP?

I think my phone was cloned and it was used to try to configure me in a legal problem with my boyfriend ez. They said it was me who was sending her an email, but while she was in court she was still receiving them and I did not ask anyone to do it.

Any help will help