my boyfriend has upper neck and back pain, could it be his pillow or the bed? and what can he do to sleep?

he works with computers so he’s always lifting them. He recently bought a new pillow but that didnt work. and the bed that he sleeps in is old. He got a massage and that worked for a couple of days i think and then it started hurting again.