How do you do magic?

Find someone who can teach you and show them that you truly want to learn for the sake of magic. Then practise constantly and build experience in doing the spell or trick.