correct?

  1. If he won a lottery, he didn’t know what to do with it.
  2. If he won a lottery, he won’t know what to do with it.
    Which is correct?

When he won a lottery, he didn’t know what to do with his winnings.
If he won a lottery, he wouldn’t know what to do with his winnings.
If he wins a lottery, he won’t know what to do with his winnings.