From a strictly physiological perspective, and given the relatively short duration of the problem, there's no reason why you should have a problem getting an erection unless you recently started a medication or have an undiagnosed ailment. Since you mentioned a break-up, there's a possibility that the issue is pyschological in nature - perhaps anxiety or mild depression. Fret not - with the right treatment, it'll be up and running in no time!