When can a person be charged with murder?

when they commit murder or are involved with the murder such as an accomplice.