How to secure my Iphone again?

I suspect that my boyfriend has been accessing my phone remotely, including my whatsapp account and such. We broke up, and I want to make sure everything is back to normal and he can't access it again. I have an Iphone 4. How can I do that?

Change your sign-in information and password and do not use the Cloud.