Thanks for posting the query,
Pain on the hard palate
can be due to trauma caused at the time of accident, there are chances that the tooth are traumatised and infected may also drain abscess in the palatal area.
Moreover pain can be due to injuries by food products, cracked tooth, noncancerous growth and also due to inflammed salivary gland
To rule out the possibilities visit to an Oral and Maxillofacial Surgeon get clinical evaluation done, take an OPG x-ray , you probably have to go for root canal treatment
of the affected teeth.
Go for complete mouth scaling and polishing.
Take complete course of antibiotic and analgesic
At home maintain a good oral hygiene
, use lukewarm saline gargles, use antiseptic mouthwash gargles twice daily.
Hope this helps out.