What is a buffalo nickel with a soldier on the other side wearing a helmet?

You have what's known as a Hobo Nickel. The soldier design was carved into the coin after it left the mint. You would need an expert first-hand inspection to determine if you have a modern version (worth $5-$50) or an original (worth possibly hundreds of dollars).