动词作主语一般要加ing或者to do,
这里加ing,
所以就是
Not sleeping well makes the old man painful .
用to do表示目的,比如,To be a teacher is my dream.