How do you work on insecurities?

My ex gave me loads of issues with trust and I have had insecurities for years anyway but they got heightened when I was with him. How can I stop feeling so insecure, jealous, paranoid etc?