Heartburn or gallbladder?

I've had pain in my chest along rib cage and in the middle of upper back for 7 hours now... it literally happened right after eating 2 sandwiches for dinner. How can I tell if it's heartburn or a gallbladder issue?  No remedies have helped or 2 of the OTC heartburn medicines