Sam Gaukroger does not appear in Harry Potter and the Order of the Phoenix or any other Harry Potter book or film.
The name doesn't match any known character in J.K. Rowling's Wizarding World. You may be confusing it with:
If you have additional context—a scene description, a role (student, teacher, villain), an actor's name—I can help identify who you're actually thinking of.