You say, "I am going to a contest", this means you are going to watch a contest.
"I am going for a contest", this is odd to say but means that you are hoping or choosing a contest.
If you say "I am in/entering a contest", you are saying you are going to attend a contest.