If button does not have id, you can write locator based on other locators strategies.
For example here i am using xpath locator then you need to click button by using Java Script executor in following way...
JavascriptExecutor js = (JavascriptExecutor) driver;//create instance of javascript executor to do actions
WebElement nextButton = driver.findElement(By.xpath("//span[contains(text(),'Next')]"));
js.executeScript("arguments[0].click();", nextButton);