Tmj is a joint / muscle/ligament ailment, not necessarily related to teeth.
In fact, only sometimes are teeth directly involved. You may certainly have these symptoms with dentures. See a prosthodontist to evaluate your dentures and jaw position while wearing them. You may be "overclosed" (chin closer to nose than normal when teeth contacting) or too open (opposite). Both can cause spasm and pain.