ago / before

a month age / a month before
How can we use them in a sentences? Is there any rule?

a month ago (from now)
a month before (some date or event).

I moved from Australia a month ago.
I moved from Australia a month before my birthday.