How to make attack animation?

How I am suppose to make the attack should it be in the state machine or animation montage what is more efficient to use and how to implement them with a trigger