Problems with macros

I can’t figure out what’s going on. I have everything set right but when in combat the macro only runs once and then stops and i end up getting killed the macro will not reset and run again. Anyone have any ideas why its not working