Use for
1) when something is being done to benefit someone or something
Ex. I bought this gift “for you”
Ex. What can I do “for you?”
Ex: I made food “for the party.”
2) when you are trying to express a purpose or the reason something is happening
Ex: He runs “for his health.”
Ex: Bring the tea upstairs “for your grandmother.”
Ex: Buckle your seatbelt “for safety.”
Use to
1) when there is some kind of transfer happening or something is being moved from one place to another, and to express direction