The tooth start showing discoloration when it has history of trauma. with the time nerve damage and tooth become non vital. due to no blood circulation teeth changes its colour. as u you are feeling pain right now its due to infection around the tooth. if tooth is savable after x-ray than need root canal and cap.