Essex fought back on the second day of their second division match against Lancashire at Emirates Old Trafford.