There is no such thing as 'failure' in meditation, especially the first time.
Your brain is always working and you can't just expect to be able to turn it off the first time you meditate. Focusing on your breath is a good start, but also see yourself as an observer. Don't fix your mind on stopping your thoughts. Have them, see them and let them pass.
Oh,and.......practice again and again and again and then some