Does "work" mean the same thing in these two sentences?

This dough does not work easily.

He could not work the math problem.
different meanings