First of all good sleep is essential for our body to function. It seems like your sleep cycle has become irregular from the description you have given. Would not advise sleeping pills as they are addictive.
Next Steps
Avoid taking naps during day time. Have regular exercise every day in the form of walks or yoga. Cut down on coffee intake.Take small cup of milk before going to bed. If music relaxes you try listening to music.
Health Tips
Try the above for for couple of weeks and get back to us . Then other options can be looked it into .