There are a few possible explanations:
1. The Pokemon switching in has an ability that raises evasion, such as Sand Veil, or was holding an item that lowers accuracy, such as Bright Powder. Amethyst's answer has a complete table of all possible modifiers.
2. Your Pokemon's accuracy was lowered, which may cause 100% accurate moves to miss
3. You mistook a move failing or having no effect for missing. For example, using Spore on a burnt opponent or using Sucker Punch against a Pokemon switching in would fail, while using a psychic-type move on a disguised Zoroark would show up as having no effect.
4. You were in a double battle and targeted the wrong spot.
5. You were in a double battle and the move was redirected via a move like Rage Powder or Follow Me.
6. You mistook 100 Power for 100 Accuracy.
If you want a better answer, please tell us what move you were using and against whom.