You have to face them head on. You have to think about what hurt you, what can help you get over it and move forward. It takes time but it works. You have to face the problem head on so that you can have a better future.
You can start by forgiving anyone from your past that may have hurt you and caused you to have any insecurities. Forgiveness is the first step to letting go and moving on.