The MAX15004's exposed pad should not be connected directly to ground pin. Otherwise, there may be no output. Based on the datasheet, the correct method of connecting the exposed pad is as follows:
…
The MAX15004/5 is not like the MAX17690. It can't be used as a primary side sensing device. For isolated applications, MAX15004/5 require either an opto or auxiliary winding referenced to primary ground…