Permalinks not working

Permalinks not working and giving 404 error. Please advise what could be done to correct this.