u dint mention if it is urinary bladder or gallbladder but i am taking it as urinary bladder .pain in the urinary bladder may be because of several reasons like infection ,cystitis(inflamation of bladder),urethral stricture,last and very less common is bladder cancer.so diagnosis can be made only on physical examination and further investigations .