Captain Heather Knight's maiden T20 century helped England on their way to a first victory of T20 World Cup against Thailand.